PATH:
opt
/
alt
/
tests
/
alt-php53-pecl-igbinary_2.0.8-1.el8
/
tests
--TEST-- Correctly unserialize multiple references in objects --SKIPIF-- --INI-- igbinary.compact_strings = On --FILE-- <?php class Foo{} $a = new stdClass(); $a->x0 = NULL; $a->x1 = &$a->x0; $a->x2 = &$a->x1; $a->x3 = &$a->x2; $a->x4 = false; $a->x5 = &$a->x4; $a->x6 = new Foo(); $a->x7 = &$a->x6; $a->x8 = &$a->x7; $a->x9 = array(33); $a->x10 = new stdClass(); $a->x10->prop = &$a->x8; $a->x11 = &$a->x10; $a->x12 = $a->x9; $ig_ser = igbinary_serialize($a); printf("ig_ser=%s\n", bin2hex($ig_ser)); $ig = igbinary_unserialize($ig_ser); $f = &$ig->x3; $f = 'V'; $g = &$ig->x5; $g = 'H'; $h = $ig->x10; $h->prop = 'S'; var_dump($ig); --EXPECTF-- ig_ser=000000021708737464436c617373140d1102783025001102783125010111027832250101110278332501011102783425041102783525010211027836251703466f6f14001102783725220311027838252203110278391401060006211103783130251a001401110470726f70252203110378313125220511037831320104 object(stdClass)#%d (13) { ["x0"]=> &string(1) "V" ["x1"]=> &string(1) "V" ["x2"]=> &string(1) "V" ["x3"]=> &string(1) "V" ["x4"]=> &string(1) "H" ["x5"]=> &string(1) "H" ["x6"]=> &string(1) "S" ["x7"]=> &string(1) "S" ["x8"]=> &string(1) "S" ["x9"]=> array(1) { [0]=> int(33) } ["x10"]=> &object(stdClass)#%d (1) { ["prop"]=> &string(1) "S" } ["x11"]=> &object(stdClass)#%d (1) { ["prop"]=> &string(1) "S" } ["x12"]=> array(1) { [0]=> int(33) } }
[-] igbinary_015c.phpt
[edit]
[-] igbinary_043.phpt
[edit]
[-] igbinary_057.phpt
[edit]
[-] igbinary_bug72134.phpt
[edit]
[-] igbinary_045.phpt
[edit]
[-] igbinary_045b.phpt
[edit]
[-] igbinary_063.phpt
[edit]
[-] igbinary_069.phpt
[edit]
[-] igbinary_052.phpt
[edit]
[-] igbinary_004.phpt
[edit]
[-] igbinary_017.phpt
[edit]
[-] igbinary_053.phpt
[edit]
[-] igbinary_032.phpt
[edit]
[-] igbinary_058.phpt
[edit]
[-] igbinary_005.phpt
[edit]
[-] igbinary_046b.phpt
[edit]
[-] igbinary_063_php72.phpt
[edit]
[-] igbinary_064.phpt
[edit]
[-] igbinary_044.phpt
[edit]
[-] igbinary_033.phpt
[edit]
[-] igbinary_040.phpt
[edit]
[-] igbinary_046c.phpt
[edit]
[-] igbinary_049b.phpt
[edit]
[-] igbinary_006.phpt
[edit]
[-] igbinary_054.phpt
[edit]
[-] igbinary_063_php7.phpt
[edit]
[-] igbinary_046d.phpt
[edit]
[-] igbinary_046.phpt
[edit]
[-] igbinary_021.phpt
[edit]
[-] igbinary_034.phpt
[edit]
[-] igbinary_059.phpt
[edit]
[-] igbinary_068.phpt
[edit]
[-] igbinary_029.phpt
[edit]
[-] igbinary_014.phpt
[edit]
[-] igbinary_025.phpt
[edit]
[-] igbinary_016.phpt
[edit]
[-] igbinary_048b.phpt
[edit]
[-] igbinary_024.phpt
[edit]
[-] igbinary_055.phpt
[edit]
[-] igbinary_048.phpt
[edit]
[-] igbinary_009.phpt
[edit]
[-] igbinary_051.phpt
[edit]
[-] igbinary_023.phpt
[edit]
[-] igbinary_012.phpt
[edit]
[-] igbinary_030.phpt
[edit]
[-] igbinary_058b.phpt
[edit]
[-] igbinary_065.phpt
[edit]
[-] igbinary_018.phpt
[edit]
[-] igbinary_015.phpt
[edit]
[-] igbinary_030_php7.phpt
[edit]
[-] igbinary_062.phpt
[edit]
[-] igbinary_042.phpt
[edit]
[-] igbinary_026b.phpt
[edit]
[-] igbinary_002.phpt
[edit]
[-] igbinary_041.phpt
[edit]
[-] igbinary_031.phpt
[edit]
[-] igbinary_027.phpt
[edit]
[-] igbinary_020.phpt
[edit]
[-] igbinary_022.phpt
[edit]
[-] igbinary_030_php72.phpt
[edit]
[-] igbinary_015b.phpt
[edit]
[-] igbinary_007.phpt
[edit]
[-] igbinary_049.phpt
[edit]
[-] igbinary_050.phpt
[edit]
[+]
..
[-] igbinary_013.phpt
[edit]
[-] igbinary_010.phpt
[edit]
[-] igbinary_028.phpt
[edit]
[-] igbinary_045c.phpt
[edit]
[-] igbinary_001.phpt
[edit]
[-] igbinary_003.phpt
[edit]
[-] igbinary_066.phpt
[edit]
[-] igbinary_008.phpt
[edit]
[-] igbinary_009b.phpt
[edit]
[-] igbinary_026.phpt
[edit]
[-] igbinary_047.phpt
[edit]