summaryrefslogtreecommitdiff
path: root/ext/standard/tests/serialize/bug42919.phpt
blob: 0a3d0b2e07e9cea0fbddfc179aa9f6633cb37f9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Bug #42919 (Unserializing of namespaced class object fails)
--FILE--
<?php
namespace Foo;
class Bar {
}
echo serialize(new Bar) . "\n";
$x = unserialize(serialize(new Bar));
echo get_class($x) . "\n";
?>
--EXPECT--
O:7:"Foo\Bar":0:{}
Foo\Bar