Annotation of embedaddon/php/ext/reflection/tests/bug31651.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Reflection Bug #31651 (ReflectionClass::getDefaultProperties segfaults with arrays.)
        !             3: --FILE--
        !             4: <?php
        !             5: 
        !             6: class Test
        !             7: {
        !             8:        public $a = array('a' => 1);
        !             9: }
        !            10: 
        !            11: $ref = new ReflectionClass('Test');
        !            12: 
        !            13: print_r($ref->getDefaultProperties());
        !            14: 
        !            15: ?>
        !            16: --EXPECT--
        !            17: Array
        !            18: (
        !            19:     [a] => Array
        !            20:         (
        !            21:             [a] => 1
        !            22:         )
        !            23: 
        !            24: )

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>