1--TEST--
2Behaviour of incomplete class is preserved even when it was not created by unserialize().
3--FILE--
4<?php
5$a = new __PHP_Incomplete_Class;
6var_dump($a);
7var_dump($a->p);
8
9echo "Done";
10?>
11--EXPECTF--
12object(__PHP_Incomplete_Class)#%d (0) {
13}
14
15Warning: main(): The script tried to access a property on 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 an autoloader to load the class definition in %s on line %d
16NULL
17Done
18