![]() ![]() | ![]() |
1.1 misho 1: --TEST-- 2: Bug #42919 (Unserializing of namespaced class object fails) 3: --FILE-- 4: <?php 5: namespace Foo; 6: class Bar { 7: } 8: echo serialize(new Bar) . "\n"; 9: $x = unserialize(serialize(new Bar)); 10: echo get_class($x) . "\n"; 11: ?> 12: --EXPECT-- 13: O:7:"Foo\Bar":0:{} 14: Foo\Bar