summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/bug31651.phpt
blob: 66a56c0f472ae8ef4de1da220b93d76198212f47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--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
        )

)