📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-06-26 12:33:11
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php82-pecl-msgpack_2.2.0-1.el8
/
tests
📍 /opt/alt/tests/alt-php82-pecl-msgpack_2.2.0-1.el8/tests
🔄 Refresh
✏️
Editing: 002.phpt
Read Only
--TEST-- Check for null serialisation --SKIPIF-- --FILE-- <?php if(!extension_loaded('msgpack')) { dl('msgpack.' . PHP_SHLIB_SUFFIX); } function test($type, $variable) { $serialized = msgpack_serialize($variable); $unserialized = msgpack_unserialize($serialized); echo $type, PHP_EOL; echo bin2hex($serialized), PHP_EOL; var_dump($unserialized); echo $unserialized === $variable ? 'OK' : 'ERROR', PHP_EOL; } test('null', null); ?> --EXPECT-- null c0 NULL OK
💾 Save Changes
❌ Cancel