php-src/Zend/tests/031.phpt
2018-10-14 12:07:20 -03:00

12 lines
187 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