]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
authorSVN Migration <svn@php.net>
Fri, 14 Feb 2003 18:42:37 +0000 (18:42 +0000)
committerSVN Migration <svn@php.net>
Fri, 14 Feb 2003 18:42:37 +0000 (18:42 +0000)
ext/standard/tests/strings/bug22224.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/strings/bug22224.phpt b/ext/standard/tests/strings/bug22224.phpt
new file mode 100644 (file)
index 0000000..fea9455
--- /dev/null
@@ -0,0 +1,26 @@
+--TEST--
+Bug #22224 (implode changes object references in array)
+--INI--
+error_reporting=0
+--FILE--
+<?php
+class foo {
+}
+
+
+$a = new foo();
+                           
+$arr = array(0=>&$a, 1=>&$a);
+var_dump(implode(",",$arr));
+var_dump($arr)
+?>
+--EXPECT--
+string(13) "Object,Object"
+array(2) {
+  [0]=>
+  &object(foo)(0) {
+  }
+  [1]=>
+  &object(foo)(0) {
+  }
+}