1.6.0alpha3
Pre-releaseThe PHP team is happy to announce that the third 1.6 alpha version of the mongodb PHP extension is now available on PECL.
Release Highlights
When connected to MongoDB 3.6, the driver can now automatically retry queries and read commands executed with executeQuery()
and executeReadCommand()
, respectively, that fail due to a network error or replica set failover. Note that only initial queries and commands can be retried; getMore
commands issued during cursor iteration are not retryable. This feature is controlled by a new retryReads
URI option, which defaults to true
.
As of this release, retryable writes are now enabled by default. Note that retryable writes are fundamentally incompatible with the MMAPv1 storage engine. Applications still relying on MMAPv1 should consider upgrading to WiredTiger or otherwise disable retryable writes explicitly by setting the retryWrites
URI option to false
.
MongoDB 4.2 introduced aggregation pipelines for updates, which allows for more expressive update statements (e.g. conditional updates based on current field values). To support this feature, BulkWrite::update()
now accepts a pipeline array as its second argument.
This release also upgrades our bundled libbson and libmongoc libraries to 1.15.0.
A complete list of resolved issues in this release may be found at:
https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=12484&version=24041
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