]> granicus.if.org Git - php/commitdiff
Updated test so it describes the problem more clearly.
authorMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 27 Jan 2003 01:15:14 +0000 (01:15 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 27 Jan 2003 01:15:14 +0000 (01:15 +0000)
tests/lang/bug21600.phpt

index 71c39bb2e54d151645eff1ea225f60922c73097c..bb8323a294ca3cab9de7153ad8b20374f3cebc4a 100644 (file)
@@ -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"
+}