mirror of
https://github.com/php/php-src.git
synced 2024-12-15 12:54:57 +08:00
12 lines
188 B
PHP
12 lines
188 B
PHP
--TEST--
|
|
Testing array with '[]' passed as argument by value
|
|
--FILE--
|
|
<?php
|
|
|
|
function test($var) { }
|
|
test($arr[]);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot use [] for reading in %s on line %d
|