xref: /PHP-7.2/ext/reflection/tests/bug31651.phpt (revision 610c7fbe)
1--TEST--
2Reflection Bug #31651 (ReflectionClass::getDefaultProperties segfaults with arrays.)
3--FILE--
4<?php
5
6class Test
7{
8	public $a = array('a' => 1);
9}
10
11$ref = new ReflectionClass('Test');
12
13print_r($ref->getDefaultProperties());
14
15?>
16--EXPECT--
17Array
18(
19    [a] => Array
20        (
21            [a] => 1
22        )
23
24)
25