diff options
-rwxr-xr-x | ext/reflection/tests/bug31651.phpt | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/ext/reflection/tests/bug31651.phpt b/ext/reflection/tests/bug31651.phpt index 6e569add21..60bee14e9f 100755 --- a/ext/reflection/tests/bug31651.phpt +++ b/ext/reflection/tests/bug31651.phpt @@ -5,21 +5,20 @@ Bug #31651 (ReflectionClass::getDefaultProperties segfaults with arrays.) class Test { - var $a = array('a' => 1); + public $a = array('a' => 1); } -//$obj = new Test; -//$ref = new ReflectionClass($obj); $ref = new ReflectionClass('Test'); -print_r($ref->getdefaultProperties()); +print_r($ref->getDefaultProperties()); ?> --EXPECT-- Array ( [a] => Array - ( - [a] => 1 - ) + ( + [a] => 1 + ) + ) |