MongoDB PHP Extension 1.11.0alpha1 Released

The PHP team is happy to announce that version 1.11.0alpha1 of the mongodb PHP extension is now available on PECL.

Release Highlights

This release makes the extension compatible with PHP 8.1.0RC1. This primarily 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).

Manager::startSession() 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+.

This release upgrades our libbson and libmongoc dependencies to 1.19.0.

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

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.0alpha1

or update with:

pecl upgrade mongodb-1.11.0alpha1

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