fix crash caused by uninitialized zval when unserializing properties
[awesomized/ext-ion] / tests / unserialize / executor_globals.phpt
diff --git a/tests/unserialize/executor_globals.phpt b/tests/unserialize/executor_globals.phpt
new file mode 100644 (file)
index 0000000..5d23d17
--- /dev/null
@@ -0,0 +1,22 @@
+--TEST--
+ion\unserialize/executor_globals
+--EXTENSIONS--
+ion
+--FILE--
+TEST
+<?php
+class test_class {
+       public $s;
+       public $u;
+}
+$c = new test_class;
+$c->s = new ion\Serializer\Serializer;
+
+$c->u = new ion\Unserializer\Unserializer;
+$d = $c->s->serialize($c);
+$c->u->unserialize($d);
+?>
+DONE
+--EXPECT--
+TEST
+DONE