mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
15 lines
253 B
Plaintext
15 lines
253 B
Plaintext
|
--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:8:"Foo::Bar":0:{}
|
||
|
Foo::Bar
|