mirror of
https://github.com/php/php-src.git
synced 2024-10-17 22:42:38 +00:00
12 lines
188 B
Plaintext
12 lines
188 B
Plaintext
|
--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
|