]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_5_0'.
authorSVN Migration <svn@php.net>
Sat, 22 Jan 2005 12:22:02 +0000 (12:22 +0000)
committerSVN Migration <svn@php.net>
Sat, 22 Jan 2005 12:22:02 +0000 (12:22 +0000)
ext/reflection/tests/bug31651.phpt [new file with mode: 0755]

diff --git a/ext/reflection/tests/bug31651.phpt b/ext/reflection/tests/bug31651.phpt
new file mode 100755 (executable)
index 0000000..60bee14
--- /dev/null
@@ -0,0 +1,24 @@
+--TEST--
+Bug #31651 (ReflectionClass::getDefaultProperties segfaults with arrays.)
+--FILE--
+<?php
+
+class Test
+{
+       public $a = array('a' => 1);
+}
+
+$ref = new ReflectionClass('Test');
+
+print_r($ref->getDefaultProperties());
+
+?>
+--EXPECT--
+Array
+(
+    [a] => Array
+        (
+            [a] => 1
+        )
+
+)