Added test case for bug #21600

This commit is contained in:
Moriyoshi Koizumi 2003-01-12 23:56:04 +00:00
parent 58d3451c75
commit 22a6b8f1a4

19
tests/lang/bug21600.phpt Normal file
View File

@ -0,0 +1,19 @@
--TEST--
Bug #21600 (assign by reference function call changes variable contents)
--FILE--
<?php
$tmp = array();
$tmp['foo'] = "test";
$tmp['foo'] = &bar($tmp['foo']);
var_dump($tmp);
function bar($text){
return $text;
}
?>
--EXPECT--
array(1) {
["foo"]=>
string(4) "test"
}