📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-28 22:50:34
📂
/
/
opt
/
alt
/
tests
/
alt-php84-pecl-msgpack_2.2.0-1.el8
/
tests
✏️
Editing: issue080.phpt
--TEST-- Issue #80 (Serialized failed on unseted value) --SKIPIF-- <?php if (!extension_loaded("msgpack")) { echo "skip"; } --FILE-- <?php class MyClass { protected $field; public function preSerialize() { unset($this->field); } } $t = new MyClass(); $t->preSerialize(); var_dump(msgpack_unserialize(msgpack_serialize($t))); ?> --EXPECTF-- object(MyClass)#%d (1) { ["field":protected]=> NULL }
💾 Save Changes
❌ Cancel