-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 0.6.3
-
Component/s: None
-
None
Failing test case:
--TEST-- MongoDB\Driver\Manager::executeBulkWrite() multiple times with same BulkWrite --SKIPIF-- <?php require __DIR__ . "/../utils/basic-skipif.inc"; CLEANUP(STANDALONE) ?> --FILE-- <?php require_once __DIR__ . "/../utils/basic.inc"; $manager = new MongoDB\Driver\Manager(STANDALONE); $document = (object) array('x' => 0); $bulk = new MongoDB\Driver\BulkWrite(); $bulk->insert($document); $result = $manager->executeBulkWrite(NS, $bulk); var_dump($result->isAcknowledged()); var_dump($result->getInsertedCount()); $result = $manager->executeBulkWrite(NS, $bulk); var_dump($result->isAcknowledged()); var_dump($result->getInsertedCount()); ?> ===DONE=== <?php exit(0); ?> --EXPECT-- ===> WriteResult bool(true) int(1) bool(true) int(1) ===DONE===
- related to
-
PHPC-676 Do not allow BulkWrite objects to be executed multiple times
- Closed