fix crash caused by uninitialized zval when unserializing properties
[awesomized/ext-ion] / tests / unserialize / executor_globals.phpt
1 --TEST--
2 ion\unserialize/executor_globals
3 --EXTENSIONS--
4 ion
5 --FILE--
6 TEST
7 <?php
8 class test_class {
9 public $s;
10 public $u;
11 }
12 $c = new test_class;
13 $c->s = new ion\Serializer\Serializer;
14
15 $c->u = new ion\Unserializer\Unserializer;
16 $d = $c->s->serialize($c);
17 $c->u->unserialize($d);
18 ?>
19 DONE
20 --EXPECT--
21 TEST
22 DONE