mirror of
https://github.com/php/php-src.git
synced 2024-12-17 22:09:12 +08:00
25 lines
316 B
PHP
25 lines
316 B
PHP
--TEST--
|
|
Reflection 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
|
|
)
|
|
|
|
)
|