mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
14 lines
156 B
PHP
14 lines
156 B
PHP
--TEST--
|
|
Testing array with '[]' passed as argument by reference
|
|
--FILE--
|
|
<?php
|
|
|
|
function test(&$var) { }
|
|
test($arr[]);
|
|
|
|
print "ok!\n";
|
|
|
|
?>
|
|
--EXPECT--
|
|
ok!
|