php-src/ext/reflection/tests/bug31651.phpt

25 lines
316 B
Plaintext
Raw Normal View History

2005-01-22 11:46:56 +00:00
--TEST--
Reflection Bug #31651 (ReflectionClass::getDefaultProperties segfaults with arrays.)
2005-01-22 11:46:56 +00:00
--FILE--
<?php
class Test
{
2005-01-22 12:22:01 +00:00
public $a = array('a' => 1);
2005-01-22 11:46:56 +00:00
}
$ref = new ReflectionClass('Test');
2005-01-22 12:22:01 +00:00
print_r($ref->getDefaultProperties());
2005-01-22 11:46:56 +00:00
?>
--EXPECT--
Array
(
[a] => Array
2005-01-22 12:22:01 +00:00
(
[a] => 1
)
2005-01-22 11:46:56 +00:00
)