MongoDB PHP Library 1.10.1 Released

The PHP team is happy to announce that version 1.10.1 of the MongoDB PHP library is now available.

Release Highlights

This release changes the server selection logic for Database::aggregate() and Collection::aggregate() when the pipeline contains $out or $merge . The 1.10.0 release added support for executing these pipelines on 5.0+ secondaries, but introduced a bug that could cause a server selection failure in a mixed version replica set. With this change, a secondary will only be eligible if all servers in the topology are 5.0+; otherwise, the library will fall back to selecting a primary server.

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

Documentation

Documentation for this library may be found at:
https://docs.mongodb.com/php-library/

Installation

This library may be installed or upgraded with:

composer require mongodb/mongodb^1.10.1

Installation instructions for the mongodb extension may be found in the PHP.net documentation.