📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-07-12 05:49:37
📂
/ (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: bulkwrite-update_error-008.phpt
Read Only
--TEST-- MongoDB\Driver\BulkWrite::update() hint option requires MongoDB 4.2 (server-side error) --SKIPIF-- <?php require __DIR__ . "/../utils/basic-skipif.inc"; ?> <?php skip_if_not_live(); ?> <?php skip_if_server_version('>=', '4.2'); ?> --FILE-- <?php require_once __DIR__ . "/../utils/basic.inc"; $manager = create_test_manager(); $bulk = new MongoDB\Driver\BulkWrite; $bulk->update(['_id' => 1], ['$set' => ['x' => 11]], ['hint' => '_id_']); echo throws(function() use ($manager, $bulk) { $manager->executeBulkWrite(NS, $bulk); }, 'MongoDB\Driver\Exception\BulkWriteException'), "\n"; ?> ===DONE=== <?php exit(0); ?> --EXPECT-- OK: Got MongoDB\Driver\Exception\BulkWriteException BSON field 'update.updates.hint' is an unknown field. ===DONE===
💾 Save Changes
❌ Cancel