]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_5_0'.
authorSVN Migration <svn@php.net>
Sat, 25 Dec 2004 16:42:54 +0000 (16:42 +0000)
committerSVN Migration <svn@php.net>
Sat, 25 Dec 2004 16:42:54 +0000 (16:42 +0000)
ext/mysqli/tests/bug31141.phpt [new file with mode: 0644]

diff --git a/ext/mysqli/tests/bug31141.phpt b/ext/mysqli/tests/bug31141.phpt
new file mode 100644 (file)
index 0000000..acad79f
--- /dev/null
@@ -0,0 +1,28 @@
+--TEST--
+Bug #31141 testcase (properties)
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
+--FILE--
+<?php
+class Test extends mysqli
+{
+       public $test = array();
+
+       function foo()
+       {
+               $ar_test = array("foo", "bar");
+               $this->test = &$ar_test;
+       }
+}
+
+$my_test = new Test;
+$my_test->foo();
+var_dump($my_test->test);
+?>
+--EXPECTF--
+array(2) {
+  [0]=>
+  string(3) "foo"
+  [1]=>
+  string(3) "bar"
+}