PATH:
opt
/
alt
/
tests
/
alt-php51-pecl-igbinary_1.2.1-1.el8
/
tests
--TEST-- Nested objects cause segfault, php bug #54662 --SKIPIF-- <?php if (!extension_loaded("igbinary")) print "skip"; ?> --FILE-- <?php /** * Proof of concept, segmentation fault (spl_array.c/igbinary.c) * when using nested objects. * * PHP 5.3.6, Igbinary 1.x * * @author Aleksey Korzun */ class Storage { public $storage = "a string"; } $collection = new ArrayObject; $collection->append(new Storage); $ser = igbinary_serialize($collection); $new_collection = igbinary_unserialize($ser); var_dump($new_collection[0]->storage); --EXPECT-- string(8) "a string"
[-] igbinary_043.phpt
[edit]
[-] igbinary_045.phpt
[edit]
[-] igbinary_045b.phpt
[edit]
[-] igbinary_004.phpt
[edit]
[-] igbinary_bug54662.phpt
[edit]
[-] igbinary_017.phpt
[edit]
[-] igbinary_032.phpt
[edit]
[-] igbinary_005.phpt
[edit]
[-] igbinary_044.phpt
[edit]
[-] igbinary_033.phpt
[edit]
[-] igbinary_040.phpt
[edit]
[-] igbinary_006.phpt
[edit]
[-] igbinary_046.phpt
[edit]
[-] igbinary_021.phpt
[edit]
[-] igbinary_034.phpt
[edit]
[-] igbinary_029.phpt
[edit]
[-] igbinary_014.phpt
[edit]
[-] igbinary_025.phpt
[edit]
[-] igbinary_016.phpt
[edit]
[-] igbinary_024.phpt
[edit]
[-] igbinary_009.phpt
[edit]
[-] igbinary_023.phpt
[edit]
[-] igbinary_012.phpt
[edit]
[-] igbinary_030.phpt
[edit]
[-] igbinary_018.phpt
[edit]
[-] igbinary_015.phpt
[edit]
[-] igbinary_042.phpt
[edit]
[-] igbinary_026b.phpt
[edit]
[-] igbinary_002.phpt
[edit]
[-] igbinary_031.phpt
[edit]
[-] igbinary_027.phpt
[edit]
[-] igbinary_020.phpt
[edit]
[-] igbinary_022.phpt
[edit]
[-] igbinary_015b.phpt
[edit]
[-] igbinary_007.phpt
[edit]
[+]
..
[-] igbinary_013.phpt
[edit]
[-] igbinary_010.phpt
[edit]
[-] igbinary_028.phpt
[edit]
[-] igbinary_001.phpt
[edit]
[-] igbinary_003.phpt
[edit]
[-] igbinary_008.phpt
[edit]
[-] igbinary_026.phpt
[edit]
[-] igbinary_047.phpt
[edit]