1--TEST--
2Bug #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;}';
6function __autoload($name) {
7    unserialize("i:4;");
8    eval("class $name {} ");
9}
10
11print_r(unserialize($serialized_object));
12echo "okey";
13?>
14--EXPECT--
15A 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)
34okey
35