github mongodb/mongo-php-driver 1.11.0

latest releases: 1.20.0, 1.19.4, 1.19.3...
3 years ago

The PHP team is happy to announce that version 1.11.0 of the mongodb PHP extension is now available on PECL. This release completes support for new features in MongoDB 5.0.

Release Highlights

Manager::startSession() now supports a snapshot option, which allows read concern "snapshot" to be used for certain read operations outside of multi-document transactions on MongoDB 5.0+.

The driver now supports a loadBalanced URI option, which may be used when connecting to a MongoDB cluster behind a load balancer (e.g. Atlas Serverless).

Manager::selectServer() no longer requires a ReadPreference parameter. By default, the method will now attempt to select a primary server.

This release is compatible with PHP 8.1.0RC5 and adds support for the new custom object serialization mechanism introduced in PHP 7.4, which is now required with PHP 8.1 phasing out Serializable. Extensions classes that support serialization now implement __serialize() and __unserialize() methods to support the new format, in addition to retaining support for the old format (i.e. Serializable interface).

This release upgrades our libbson and libmongoc dependencies to 1.19.1.

A complete list of resolved issues in this release may be found at: https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=12484&version=31529

Documentation

Documentation is available on PHP.net:
http://php.net/set.mongodb

Installation

You can either download and install the source manually, or you can install the extension with:

pecl install mongodb-1.11.0

or update with:

pecl upgrade mongodb-1.11.0

Windows binaries are available on PECL:
http://pecl.php.net/package/mongodb

Don't miss a new mongo-php-driver release

NewReleases is sending notifications on new releases.