📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-06-30 18:48:31
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php84-pecl-igbinary_3.2.16-3.el8
/
tests
📍 /opt/alt/tests/alt-php84-pecl-igbinary_3.2.16-3.el8/tests
🔄 Refresh
✏️
Editing: __serialize_002.phpt
Read Only
--TEST-- __serialize() mechanism (002): TypeError on invalid return type --SKIPIF-- <?php if (PHP_VERSION_ID < 70400) { echo "skip __serialize/__unserialize not supported in php < 7.4 for compatibility with serialize()"; } ?> --FILE-- <?php class Test { public function __serialize() { return $this; } } try { igbinary_serialize(new Test); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- Test::__serialize() must return an array
💾 Save Changes
❌ Cancel