1--TEST--
2(un)serializing __PHP_Incomplete_Class instance
3--FILE--
4<?php
5
6$d = serialize(new __PHP_Incomplete_Class);
7$o = unserialize($d);
8var_dump($o);
9
10$o->test = "a";
11var_dump($o->test);
12var_dump($o->test2);
13
14echo "Done\n";
15?>
16--EXPECTF--
17object(__PHP_Incomplete_Class)#%d (0) {
18}
19
20Notice: main(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "unknown" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition  in %s on line %d
21
22Notice: main(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "unknown" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition  in %s on line %d
23NULL
24
25Notice: main(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "unknown" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition  in %s on line %d
26NULL
27Done
28