Annotation of embedaddon/php/ext/standard/tests/serialize/bug62836_1.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #62836 (Seg fault or broken object references on unserialize())
3: --FILE--
4: <?php
5: $serialized_object='O:1:"A":4:{s:1:"b";O:1:"B":0:{}s:2:"b1";r:2;s:1:"c";O:1:"B":0:{}s:2:"c1";r:4;}';
6: function __autoload($name) {
7: unserialize("i:4;");
8: eval("class $name {} ");
9: }
10:
11: print_r(unserialize($serialized_object));
12: echo "okey";
13: ?>
14: --EXPECT--
15: A Object
16: (
17: [b] => B Object
18: (
19: )
20:
21: [b1] => B Object
22: (
23: )
24:
25: [c] => B Object
26: (
27: )
28:
29: [c1] => B Object
30: (
31: )
32:
33: )
34: okey
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>