📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-02 22:55:33
📂
/ (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: prose_test-001.phpt
Read Only
--TEST-- Binary vector: Encoding PackedBit vector with non-zero, padded bits fails --DESCRIPTION-- Binary vector prose test #1 https://github.com/mongodb/specifications/blob/master/source/bson-binary-vector/tests/README.md#prose-tests --FILE-- <?php require_once __DIR__ . '/../utils/basic.inc'; // PackedBit vector with padding:7 and non-zero bits is invalid echo throws(function() { var_dump(new MongoDB\BSON\Binary("\x10\x07\xff", MongoDB\BSON\Binary::TYPE_VECTOR)); }, 'MongoDB\Driver\Exception\InvalidArgumentException'), "\n"; /* PHPC does not allow constructing a PackedBit vector with non-zero, padded * bits. As a result, the corresponding decoding test (i.e. prose test #2) * cannot be implemented. */ ?> ===DONE=== <?php exit(0); ?> --EXPECT-- OK: Got MongoDB\Driver\Exception\InvalidArgumentException Binary vector data is invalid ===DONE===
💾 Save Changes
❌ Cancel