📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-06-26 17:34:36
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php85-pecl-mongodb_2.3.1-1.el8
/
tests
📍 /opt/alt/tests/alt-php85-pecl-mongodb_2.3.1-1.el8/tests
🔄 Refresh
✏️
Editing: bson-javascript-serialization_error-006.phpt
Read Only
--TEST-- MongoDB\BSON\Javascript unserialization does not allow code to contain null bytes (__serialize and __unserialize) --FILE-- <?php require_once __DIR__ . '/../utils/basic.inc'; echo throws(function() { unserialize('O:23:"MongoDB\BSON\Javascript":1:{s:4:"code";s:26:"function() { return ' . "'\0'" . '; }";}'); }, 'MongoDB\Driver\Exception\InvalidArgumentException'), "\n"; ?> ===DONE=== <?php exit(0); ?> --EXPECT-- OK: Got MongoDB\Driver\Exception\InvalidArgumentException Code cannot contain null bytes ===DONE===
💾 Save Changes
❌ Cancel