summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/bug31651.phpt
blob: 60bee14e9f69e1ddf7fe44f9046290138c6ee7c0 (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
--TEST--
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
        )

)