xref: /PHP-7.3/ext/wddx/tests/bug27287.phpt (revision 782352c5)
1--TEST--
2Bug #27287 (segfault with deserializing object data)
3--SKIPIF--
4<?php if (!extension_loaded("wddx")) print "skip"; ?>
5--FILE--
6<?php
7
8	class foo {
9	}
10	$foo = new foo();
11	$foo->abc = 'def';
12
13	$string = wddx_serialize_value($foo);
14	$bar = wddx_deserialize($string);
15
16	echo "OK\n";
17
18?>
19--EXPECT--
20OK
21