mirror of
https://github.com/php/php-src.git
synced 2024-12-24 17:30:48 +08:00
12 lines
187 B
PHP
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
|