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