]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_5_0'.
authorSVN Migration <svn@php.net>
Tue, 3 Aug 2004 16:59:54 +0000 (16:59 +0000)
committerSVN Migration <svn@php.net>
Tue, 3 Aug 2004 16:59:54 +0000 (16:59 +0000)
Zend/tests/bug29505.phpt [new file with mode: 0755]

diff --git a/Zend/tests/bug29505.phpt b/Zend/tests/bug29505.phpt
new file mode 100755 (executable)
index 0000000..4d7c053
--- /dev/null
@@ -0,0 +1,31 @@
+--TEST--
+Bug #29505 (get_class_vars() severely broken when used with arrays)
+--FILE--
+<?php
+
+class Test {
+    public $empty = array();
+    public $three = array(1, "b"=>"c", 3=>array());
+}
+
+var_dump(get_class_vars('Test'));
+
+?>
+===DONE===
+--EXPECT--
+array(2) {
+  ["empty"]=>
+  array(0) {
+  }
+  ["three"]=>
+  array(3) {
+    [0]=>
+    int(1)
+    ["b"]=>
+    string(1) "c"
+    [3]=>
+    array(0) {
+    }
+  }
+}
+===DONE===