2005-01-22 11:46:56 +00:00
|
|
|
--TEST--
|
2006-03-12 12:38:25 +00:00
|
|
|
Reflection Bug #31651 (ReflectionClass::getDefaultProperties segfaults with arrays.)
|
|
|
|
--SKIPIF--
|
|
|
|
<?php extension_loaded('reflection') or die('skip'); ?>
|
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
|
|
|
)
|