From: Moriyoshi Koizumi Date: Mon, 27 Jan 2003 01:16:34 +0000 (+0000) Subject: MFH: test update X-Git-Tag: PHP_4_3_before_13561_fix~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=736588313da33a26c0994f856d9108a6fd472e7e;p=php MFH: test update --- 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" +}