From: Moriyoshi Koizumi Date: Mon, 27 Jan 2003 01:15:14 +0000 (+0000) Subject: Updated test so it describes the problem more clearly. X-Git-Tag: PHP_5_0_dev_before_13561_fix~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6174d2b446a194dcf781c5d59c38eb7f792d84eb;p=php Updated test so it describes the problem more clearly. --- diff --git a/tests/lang/bug21600.phpt b/tests/lang/bug21600.phpt index 71c39bb2e5..bb8323a294 100644 --- a/tests/lang/bug21600.phpt +++ b/tests/lang/bug21600.phpt @@ -7,13 +7,28 @@ $tmp['foo'] = "test"; $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" +}