php-src/ext/wddx/tests/bug27287.phpt

21 lines
308 B
Plaintext
Raw Normal View History

2004-02-18 00:00:36 +00:00
--TEST--
2005-08-14 01:17:52 +00:00
Bug #27287 (segfault with unserializing object data)
--SKIPIF--
<?php if (!extension_loaded("wddx")) print "skip"; ?>
2004-02-18 00:00:36 +00:00
--FILE--
<?php
class foo {
}
$foo = new foo();
$foo->abc = 'def';
$string = wddx_serialize_value($foo);
2005-08-14 01:17:52 +00:00
$bar = wddx_unserialize($string);
2004-02-18 00:00:36 +00:00
echo "OK\n";
?>
--EXPECT--
OK