moriyoshi Sun Jan 26 20:15:14 2003 EDT Modified files: /php4/tests/lang bug21600.phpt Log: Updated test so it describes the problem more clearly. Index: php4/tests/lang/bug21600.phpt diff -u php4/tests/lang/bug21600.phpt:1.1 php4/tests/lang/bug21600.phpt:1.2 --- php4/tests/lang/bug21600.phpt:1.1 Sun Jan 12 18:56:04 2003 +++ php4/tests/lang/bug21600.phpt Sun Jan 26 20:15:14 2003 @@ -7,13 +7,28 @@ $tmp['foo'] = &bar($tmp['foo']); var_dump($tmp); +unset($tmp); + +$tmp = array(); +$tmp['foo'] = "test"; +$tmp['foo'] = &fubar($tmp['foo']); +var_dump($tmp); + function bar($text){ return $text; } + +function fubar($text){ + $text = &$text; + return $text; +} ?> --EXPECT-- array(1) { ["foo"]=> string(4) "test" } - +array(1) { + ["foo"]=> + string(4) "test" +}
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php