mirror of
https://github.com/php/php-src.git
synced 2025-01-23 20:23:31 +08:00
- Update after fixing it
This commit is contained in:
parent
a01e3435de
commit
bad986232b
@ -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
|
||||
)
|
||||
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user