📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-03 05:15:20
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php84-pecl-mongodb_1.20.0-2.el8
/
tests
📍 /opt/alt/tests/alt-php84-pecl-mongodb_1.20.0-2.el8/tests
🔄 Refresh
✏️
Editing: bson-fromPHP-005.phpt
Read Only
--TEST-- MongoDB\BSON\fromPHP(): PHP document with public property whose name is an empty string --FILE-- <?php require_once __DIR__ . '/../utils/basic.inc'; $tests = [ ['' => 1], (object) ['' => 1], ]; foreach ($tests as $document) { $s = MongoDB\BSON\fromPHP($document); echo "Test " . MongoDB\BSON\toJSON($s) . "\n"; hex_dump($s); } ?> ===DONE=== <?php exit(0); ?> --EXPECTF-- Deprecated: Function MongoDB\BSON\fromPHP() is deprecated in %s Deprecated: Function MongoDB\BSON\toJSON() is deprecated in %s Test { "" : 1 } 0 : 0b 00 00 00 10 00 01 00 00 00 00 [...........] Deprecated: Function MongoDB\BSON\fromPHP() is deprecated in %s Deprecated: Function MongoDB\BSON\toJSON() is deprecated in %s Test { "" : 1 } 0 : 0b 00 00 00 10 00 01 00 00 00 00 [...........] ===DONE===
💾 Save Changes
❌ Cancel