php-src/Zend/tests/031.phpt
2008-05-11 03:50:28 +00:00

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