]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
authorSVN Migration <svn@php.net>
Sun, 12 Jan 2003 23:56:05 +0000 (23:56 +0000)
committerSVN Migration <svn@php.net>
Sun, 12 Jan 2003 23:56:05 +0000 (23:56 +0000)
tests/lang/bug21600.phpt [new file with mode: 0644]

diff --git a/tests/lang/bug21600.phpt b/tests/lang/bug21600.phpt
new file mode 100644 (file)
index 0000000..71c39bb
--- /dev/null
@@ -0,0 +1,19 @@
+--TEST--
+Bug #21600 (assign by reference function call changes variable contents)
+--FILE--
+<?php
+$tmp = array();
+$tmp['foo'] = "test";
+$tmp['foo'] = &bar($tmp['foo']);
+var_dump($tmp);
+
+function bar($text){
+  return $text;
+}
+?>
+--EXPECT--
+array(1) {
+  ["foo"]=>
+  string(4) "test"
+}
+