1--TEST-- 2Custom unserialization of classes with no custom unserializer. 3--FILE-- 4<?php 5$ser = 'C:1:"C":6:{dasdas}'; 6$a = unserialize($ser); 7eval('class C {}'); 8$b = unserialize($ser); 9 10var_dump($a, $b); 11 12echo "Done"; 13?> 14--EXPECTF-- 15Warning: Class __PHP_Incomplete_Class has no unserializer in %sserialization_objects_009.php on line %d 16 17Warning: Class C has no unserializer in %sserialization_objects_009.php on line %d 18object(__PHP_Incomplete_Class)#%d (1) { 19 ["__PHP_Incomplete_Class_Name"]=> 20 string(1) "C" 21} 22object(C)#%d (0) { 23} 24Done 25