1.5.4
The PHP team is happy to announce that version 1.5.4 of the mongodb PHP extension is now available on PECL.
Release Highlights
The executeQuery()
method may now throw a CommandException instead of a ServerException, which will make the server's error document accessible to an application. As CommandException is a sub-class of ServerException, this is not a breaking change.
Session::startTransaction()
now raises an error when attempting to start a multi-document transaction on a sharded cluster. This is an intentional safeguard to prevent the 1.5.x PHP driver from starting a transaction on a MongoDB 4.2+ sharded cluster, since the driver does not implement other necessary features (e.g. mongos pinning). PHP driver 1.6.0 will fully support sharded transactions and have this restriction removed.
A complete list of resolved issues in this release may be found at:
https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=12484&version=22329
Documentation
Documentation is available on PHP.net:
http://php.net/set.mongodb
Feedback
We would appreciate any feedback you might have on the project:
https://jira.mongodb.org/secure/CreateIssue.jspa?pid=12484&issuetype=6
Installation
You can either download and install the source manually, or you can install the extension with:
pecl install mongodb
or update with:
pecl upgrade mongodb
Windows binaries are available on PECL:
http://pecl.php.net/package/mongodb