mirror of
https://github.com/php/php-src.git
synced 2024-10-20 07:53:58 +00:00
e16bba12b1
- Add missing skipif
27 lines
383 B
PHP
Executable File
27 lines
383 B
PHP
Executable File
--TEST--
|
|
Reflection Bug #31651 (ReflectionClass::getDefaultProperties segfaults with arrays.)
|
|
--SKIPIF--
|
|
<?php extension_loaded('reflection') or die('skip'); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
class Test
|
|
{
|
|
public $a = array('a' => 1);
|
|
}
|
|
|
|
$ref = new ReflectionClass('Test');
|
|
|
|
print_r($ref->getDefaultProperties());
|
|
|
|
?>
|
|
--EXPECT--
|
|
Array
|
|
(
|
|
[a] => Array
|
|
(
|
|
[a] => 1
|
|
)
|
|
|
|
)
|