📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-06-26 15:58:51
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php83-pecl-igbinary_3.2.15-1.el8
/
tests
📍 /opt/alt/tests/alt-php83-pecl-igbinary_3.2.15-1.el8/tests
🔄 Refresh
✏️
Editing: igbinary_bug54662.phpt
Read Only
--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. * * @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"
💾 Save Changes
❌ Cancel