File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ --TEST--
2+ Issue #94 (PHP7 segmentation fault with references)
3+ --SKIPIF--
4+ <?php
5+ if (!extension_loaded ("msgpack " )) {
6+ echo "skip " ;
7+ }
8+ --FILE --
9+ <?php
10+ $ bad = unserialize ('a:4:{i:1;a:1:{s:10:"verylongid";s:1:"1";}i:10;a:1:{s:10:"verylongid";s:2:"10";}i:16;a:1:{s:10:"verylongid";s:2:"16";}i:0;a:1:{s:8:"children";a:3:{i:16;R:6;i:10;R:4;i:1;R:2;}}} ' );
11+ $ p = msgpack_pack ($ bad );
12+ print_r (msgpack_unpack ($ p ));
13+ --EXPECT --
14+ Array
15+ (
16+ [1 ] => Array
17+ (
18+ [verylongid] => 1
19+ )
20+
21+ [10 ] => Array
22+ (
23+ [verylongid] => 10
24+ )
25+
26+ [16 ] => Array
27+ (
28+ [verylongid] => 16
29+ )
30+
31+ [0 ] => Array
32+ (
33+ [children] => Array
34+ (
35+ [16 ] => Array
36+ (
37+ [verylongid] => 16
38+ )
39+
40+ [10 ] => Array
41+ (
42+ [verylongid] => 10
43+ )
44+
45+ [1 ] => Array
46+ (
47+ [verylongid] => 1
48+ )
49+
50+ )
51+
52+ )
53+
54+ )
You can’t perform that action at this time.
0 commit comments