📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-07-12 04:52:17
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php80-pecl-mongodb_1.18.1-1.el8
/
tests
📍 /opt/alt/tests/alt-php80-pecl-mongodb_1.18.1-1.el8/tests
🔄 Refresh
✏️
Editing: bson-toPHP_error-006.phpt
Read Only
--TEST-- MongoDB\BSON\toPHP(): BSON decoding exception with unknown BSON type --FILE-- <?php require_once __DIR__ . '/../utils/basic.inc'; $bson = fromPHP(["hello" => ["cruel" => "world"]]); $bson[15] = chr(0x42); echo throws(function() use ($bson) { toPHP($bson); }, 'MongoDB\Driver\Exception\UnexpectedValueException'), "\n"; ?> ===DONE=== <?php exit(0); ?> --EXPECT-- OK: Got MongoDB\Driver\Exception\UnexpectedValueException Detected unknown BSON type 0x42 for field path "hello.cruel". Are you using the latest driver? ===DONE===
💾 Save Changes
❌ Cancel