cvs: php4(PHP_4_3) /tests/lang bug21600.phpt

From: Date: Mon, 27 Jan 2003 01:16:34 +0000
Subject: cvs: php4(PHP_4_3) /tests/lang bug21600.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-18190@lists.php.net to get a copy of this message
moriyoshi Sun Jan 26 20:16:34 2003 EDT Modified files: (Branch: PHP_4_3) /php4/tests/lang bug21600.phpt Log: MFH: test update Index: php4/tests/lang/bug21600.phpt diff -u php4/tests/lang/bug21600.phpt:1.1.2.1 php4/tests/lang/bug21600.phpt:1.1.2.2 --- php4/tests/lang/bug21600.phpt:1.1.2.1 Sun Jan 12 18:57:20 2003 +++ php4/tests/lang/bug21600.phpt Sun Jan 26 20:16:34 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" +}

« previous php.cvs (#18190) next »