📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-06-26 13:34:12
📂
/ (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_096.phpt
Read Only
--TEST-- Test unserialization creates valid current() --INI-- display_errors=stderr error_reporting=E_ALL --FILE-- <?php $arr = [ 'one' => [ 'two' => [ 'three' => [ 'four' ], ], ], ]; $test = current(current(current(current($arr)))); var_dump($test); // Note: after unserialization the current is the last array element. $arr2 = igbinary_unserialize(igbinary_serialize($arr)); $test2 = current(current(current(current($arr2)))); var_dump($test2); ?> --EXPECT-- string(4) "four" string(4) "four"
💾 Save Changes
❌ Cancel