1--TEST--
2Bug #27469 (serialize() objects of incomplete class)
3--FILE--
4<?php
5$str = 'O:9:"TestClass":0:{}';
6$obj = unserialize($str);
7var_dump($obj);
8echo serialize($obj)."\n";
9var_dump($obj);
10echo serialize($obj)."\n";
11var_dump($obj);
12?>
13--EXPECT--
14object(__PHP_Incomplete_Class)#1 (1) {
15  ["__PHP_Incomplete_Class_Name"]=>
16  string(9) "TestClass"
17}
18O:9:"TestClass":0:{}
19object(__PHP_Incomplete_Class)#1 (1) {
20  ["__PHP_Incomplete_Class_Name"]=>
21  string(9) "TestClass"
22}
23O:9:"TestClass":0:{}
24object(__PHP_Incomplete_Class)#1 (1) {
25  ["__PHP_Incomplete_Class_Name"]=>
26  string(9) "TestClass"
27}
28