Skip to content

Commit 3d27b22

Browse files
committed
Address Copilot review comments
1 parent 2662df5 commit 3d27b22

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

tests/bulkwritecommand/bulkwritecommand-ctor-options-combined-001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class CommandLogger implements MongoDB\Driver\Monitoring\CommandSubscriber
2020

2121
$command = $event->getCommand();
2222

23-
printf("ordered: %s\n", var_export((bool) $command->ordered, true));
23+
printf("ordered: %s\n", var_export($command->ordered, true));
2424
printf("comment: %s\n", json_encode($command->comment));
2525
}
2626

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--TEST--
2+
MongoDB\Driver\Query construction with maxAwaitTimeMS option (64-bit)
3+
--SKIPIF--
4+
<?php if (8 !== PHP_INT_SIZE) { die('skip Only for 64-bit platform'); } ?>
5+
--FILE--
6+
<?php
7+
8+
$q = new MongoDB\Driver\Query([], ['maxAwaitTimeMS' => 4294967295]);
9+
echo "maxAwaitTimeMS=4294967295: OK\n";
10+
11+
?>
12+
===DONE===
13+
<?php exit(0); ?>
14+
--EXPECT--
15+
maxAwaitTimeMS=4294967295: OK
16+
===DONE===

tests/session/session-getServer-001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ require_once __DIR__ . "/../utils/basic.inc";
1111
$manager = create_test_manager();
1212
$session = $manager->startSession();
1313

14-
/* Session::getServer() returns null, as sessions are not pinned to a server.
15-
* Note: mongos pinning for sharded transactions was removed in MongoDB 6.0. */
14+
/* Session::getServer() currently returns null, as sessions are not pinned
15+
* to a server. */
1616
var_dump($session->getServer());
1717

1818
?>

0 commit comments

Comments
 (0)