Skip to content

Releases: mongodb/mongo-php-driver

1.5.5

10 Jun 20:10
Compare
Choose a tag to compare

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

Release Highlights

This release addresses a memory leak introduced in the previous 1.5.4 release.

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

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

1.6.0alpha2

03 Jun 19:42
Compare
Choose a tag to compare
1.6.0alpha2 Pre-release
Pre-release

The PHP team is happy to announce that the second 1.6 alpha version of the mongodb PHP extension is now available on PECL.

Release Highlights

This release ensures that executeBulkWrite() throws a BulkWriteException after any other runtime exception (e.g. ConnectionException). This ensures that any intermediate write result can still be accessed via BulkWriteException::getWriteResult(). The original exception can also be accessed via the getPrevious() method.

This release also upgrades our bundled libbson and libmongoc libraries to 1.14.0.

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

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

1.5.4

03 Jun 18:07
Compare
Choose a tag to compare

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

1.6.0alpha1

03 Dec 13:54
Compare
Choose a tag to compare
1.6.0alpha1 Pre-release
Pre-release

The PHP team is happy to announce that the first 1.6 alpha version of the mongodb PHP extension is now available on PECL.

Release Highlights

This release adds a Session::isInTransaction method to indicate whether a transaction is active, and exposes error labels to improve on the syntax for retrying transactions upon transient failures.

We have added an interface for the Cursor class and __set_state() support for ReadConcern, ReadPreference, and WriteConcern. This release also contains our revamped test suite.

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

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

1.5.3

20 Sep 19:09
Compare
Choose a tag to compare

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

Release Highlights

This release fixes a crash when deserializing BSON that contained an empty, deeply nested sub-document. It also resolves an outstanding bug where a MongoDB\Driver\Query object's internal state might be modified by the executeQuery() method (relevant for any users that re-use Query objects). Lastly, OpenSSL 1.1 will now be detected even if pkg-config is unavailable.

This release upgrades our bundled libbson and libmongoc libraries to 1.13.0, which notably adds support for LibreSSL 2.7+.

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

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

1.5.2

01 Aug 16:45
Compare
Choose a tag to compare

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

Release Highlights

This release addresses a few bugs that were present in earlier releases. Among them: a use-after-free crash issue when using session methods after Session::endSession() was called; an issue with passing SSL options both as part of the connection string and through $driverOptions; and a build issue with OpenSSL 1.1 without pkg-config being available.

This release upgrades our bundled libbson and libmongoc libraries to 1.12.0, and adds several test cases and testing platforms on Travis.

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

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

1.5.1

09 Jul 14:41
Compare
Choose a tag to compare

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

Release Highlights

This release addresses an issue with the default value of configure options without explicit value.

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

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

1.5.0

27 Jun 16:23
Compare
Choose a tag to compare

The PHP team is happy to announce that version 1.5.0 of the mongodb PHP extension is now available on PECL. This release adds support for new features in MongoDB 4.0 and drops support for MongoDB 2.6 and earlier.

Release Highlights

This release adds support for MongoDB 4.0 and with that its main new feature: multi-document transactions for replica sets. The MongoDB\Driver\Session class now has methods to start, commit, and abort transactions. After starting a transaction, the session object may be passed as an option to executed commands, queries, and write operations to associate those operations with the transaction. Other new server features, such as SCRAM-SHA-256 authentication, are also supported.

This driver release introduces a significant enhancement to the driver's type map functionality for BSON deserialization. In addition to configuring a PHP type for root documents, embedded documents, and arrays, it is now possible to configure types for specific field paths within the BSON document. More information on this may be found in the driver's BSON deserialization documentation.

The driver's exception hierarchy has been improved so that users can better identify errors originating from the server. If an exception is an instance of a MongoDB\Driver\Exception\ServerException, the driver guarantees that its exception code originates from the server (it should match a known server error code). A new MongoDB\Driver\Exception\CommandException has been introduced for command errors and provides access to the command's original response document.

Some configure options for building the driver from source have changed. The internal --enable-developer-flags and --enable-coverage options have been renamed to --enable-mongodb-developer-flags and --enable-mongodb-coverage. --with-mongodb-sasl no longer accepts a directory string as we now use pkg-config to search for Cyrus SASL (as we do for SSL libraries). A --with-mongodb-icu option has been introduced, which defaults to "auto". ICU is required for SASLPrep, which may used for SCRAM-SHA-256 authentication.

Lastly, this release introduces a MongoDB\BSON\Int64 class expressly to allow 64-bit integers from BSON to be represented on 32-bit platforms. Previously, the driver would throw an exception if a 64-bit integer would overflow PHP's native integer size. This new class enabled a 64-bit integer to be roundtripped through a 32-bit PHP environment without any loss of precision and also allows its value to be accessed as a string.

This release upgrades our libbson and libmongoc dependencies to 1.11.0. Support for MongoDB 2.6 and earlier has been removed.

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

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

or update with:

pecl upgrade mongodb

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

1.4.4

06 Jun 15:54
Compare
Choose a tag to compare

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

Release Highlights

This release addresses a compile time issue related to compiling with the bundled zlib in case your system does not have the library or headers. The new release additionally does no longer send a session ID with unacknowledged writes, as this is prohibited by the driver session specification.

We have also updated the documentation that macOS users install the driver from PECL now that Homebrew no longer has a PECL/mongodb extension formula.

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

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

or update with:

pecl upgrade mongodb

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

1.4.3

19 Apr 14:56
Compare
Choose a tag to compare

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

Release Highlights

This release addresses a handful of issues related to executing commands that yield a command cursor (e.g. aggregate) and sessions on MongoDB 3.6. Previously, a getMore on a command cursor could use a different session than the originating command, which could result in a runtime error if authentication was used. The driver will now ensure that command cursors always use the same session as the originating command.

When installing the driver on macOS, the driver will now default to Secure Transport instead of OpenSSL. This should alleviate issues some macOS High Sierra users have experienced related to BoringSSL being mistaken for OpenSSL at runtime. OpenSSL may still be used by building the driver from source and specifying --with-mongodb-ssl=openssl as an option to configure.

This release upgrades our libbson and libmongoc dependencies to 1.9.4.

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

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

or update with:

pecl upgrade mongodb

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