-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
When running:
php -dextension=mongodb.so -r '$m = new MongoDB\Driver\Manager("mongodb://localhost:27017"); $c = new MongoDB\Driver\Command( [ "drop" => "test"] ); $m->executeCommand( "demo", $c );'
And not having MongoDB running, the following exception is produced:
Fatal error: Uncaught exception 'MongoDB\Driver\Exception\RuntimeException' with message 'Another cursor derived from this client is in exhaust.' in Command line code on line 1 MongoDB\Driver\Exception\RuntimeException: Another cursor derived from this client is in exhaust. in Command line code on line 1 Call Stack: 0.0002 261472 1. {main}() Command line code:0 0.0008 272104 2. MongoDB\Driver\Manager->executeCommand() Command line code:1
Shouldn't it rather say it can't make a connection to mongodb://localhost:27017 ?
- is related to
-
CDRIVER-644 bson_error_t's "code" is often wrong
- Closed