cvs: php4(PHP_4_3) /tests/lang bug21600.phpt
| From: | Moriyoshi Koizumi | Date: | Sun, 12 Jan 2003 23:57:20 +0000 |
| Subject: | cvs: php4(PHP_4_3) /tests/lang bug21600.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-17852@lists.php.net to get a copy of this message | ||
moriyoshi Sun Jan 12 18:57:20 2003 EDT
Added files: (Branch: PHP_4_3)
/php4/tests/lang bug21600.phpt
Log:
MFH
Index: php4/tests/lang/bug21600.phpt
+++ php4/tests/lang/bug21600.phpt
--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"
}