]> granicus.if.org Git - php/commitdiff
Test for bug #27287
authorfoobar <sniper@php.net>
Wed, 18 Feb 2004 00:00:36 +0000 (00:00 +0000)
committerfoobar <sniper@php.net>
Wed, 18 Feb 2004 00:00:36 +0000 (00:00 +0000)
ext/wddx/tests/bug27287.phpt [new file with mode: 0755]

diff --git a/ext/wddx/tests/bug27287.phpt b/ext/wddx/tests/bug27287.phpt
new file mode 100755 (executable)
index 0000000..3183fbc
--- /dev/null
@@ -0,0 +1,18 @@
+--TEST--
+Bug #27287 (segfault with deserializing object data)
+--FILE--
+<?php
+       
+       class foo {
+       }
+       $foo = new foo();
+       $foo->abc = 'def';
+       
+       $string = wddx_serialize_value($foo);
+       $bar = wddx_deserialize($string);
+
+       echo "OK\n";
+
+?>
+--EXPECT--
+OK