Also removed the code, and (ir)relevant test cases.
Currently only supports inserts. Use php_mongo_api_connection_supports_feature() to see if the server supports this new API before use! Conflicts: config.m4
MongoDuplicateKeyException extends MongoWriteConcernException MongoProtocolException extends MongoExceptions MongoDuplicateKeyException will be thrown on duplicate-key errors from the new write api. MongoProtocolException will be thrown on "new" protocol errors, and when we start breaking BC, will be thrown instead of MongoCursorException on request/response id mismatches and related errors which incorrectly throw Cursor exceptions for BC Conflicts: config.m4 config.w32 php_mongo.c
This also adds error checking for the GLE command itself, using the same function that findAndModify() uses to inspect the command response. If the GLE response is successful, the write operation is considered to have failed if the "err" field is a non-empty string. Previously, we sourced the message and code from the "errmsg" and "n" fields, respectively, which was incorrect.
Initial support for "mongodb" stream context options Valid context options are: log_insert => function($serverinfo, $newdocument, $insertoptions) log_query => function($serverinfo, $query, $cursoroptions) log_update => function($serverinfo, $criteria, $newdoc, $insertoptions, $cursoroptions) log_delete => function($serverinfo, $criteria, $insertoptions, $cursoroptions) log_getmore => function($serverinfo, $cursorinfo) log_killcursor => function($serverinfo, $cursorid) log_batchinsert => function($serverinfo, $documents, $flags, $insertoptions) Note that some things (like $query) may have been modified between the time the user called the function and the time we emit the callback. This is because we do rewrite for example the query to support mongos
And hopefully add windows support :)