php/pcre/nginx/spawn-fcgi sources
[tomato.git] / release / src / router / php / ext / standard / tests / serialize / bug62836_1.phpt
blob7291046410112e0777a11db04179dbae95ff7413
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 {} ");
11 print_r(unserialize($serialized_object));
12 echo "okey";
14 --EXPECT--
15 A Object
17     [b] => B Object
18         (
19         )
21     [b1] => B Object
22         (
23         )
25     [c] => B Object
26         (
27         )
29     [c1] => B Object
30         (
31         )
34 okey