php-src/Zend/tests/031.phpt
2018-10-14 19:45:12 +02: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