Annotation of embedaddon/php/ext/standard/tests/serialize/bug55798.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #55798 (serialize followed by unserialize with numeric object prop. gives integer prop)
        !             3: --FILE--
        !             4: <?php
        !             5: 
        !             6: $a = new stdClass();
        !             7: $a->{0} = 'X';
        !             8: $a->{1} = 'Y';
        !             9: var_dump(serialize($a));
        !            10: var_dump($a->{0});
        !            11: $b = unserialize(serialize($a));
        !            12: var_dump(serialize($b));
        !            13: var_dump($b->{0});
        !            14: --EXPECT--
        !            15: string(51) "O:8:"stdClass":2:{s:1:"0";s:1:"X";s:1:"1";s:1:"Y";}"
        !            16: string(1) "X"
        !            17: string(51) "O:8:"stdClass":2:{s:1:"0";s:1:"X";s:1:"1";s:1:"Y";}"
        !            18: string(1) "X"

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