Skip to content

Releases: mongodb/mongo-php-driver

1.3.0

19 Sep 20:44
Compare
Choose a tag to compare

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

Release Highlights

The driver now provides an API for monitoring database commands, which complies with the Command Monitoring specification. This API exists within the MongoDB\Driver\Monitoring namespace and is demonstrated in the Application Performance Monitoring (APM) tutorial.

New BSON functions have been introduced to support output formats defined in the Extended JSON specification:

The MongoDB\BSON\fromJSON() function has been enhanced to parse canonical and relaxed extended JSON, in addition to the legacy format. The jsonSerialize() method on BSON classes implementing JsonSerializable has not changed; those methods continue to return data in the legacy format.

The ObjectID class has been renamed to ObjectId. As class names in PHP are case-insensitive, this change may go unnoticed; however, users are encouraged to use the canonical spelling. The Timestamp class now has getIncrement() and getTimestamp() methods, which return 32-bit integers for each component. The Binary class now enforces a 16-byte data length for UUID subtypes 0x03 and 0x04. All BSON type classes now implement a corresponding interface.

The ReadConcern and WriteConcern classes now have an isDefault() method, which checks whether the object was constructed without any options. This is most useful for inspecting the objects returned by Manager::getReadConcern() and Manager::getWriteConcern(). The PHP library utilizes this method to decide whether a read concern or write concern should be omitted from a database command.

BulkWrite::insert() will now always return the inserted document's ID. Previously, it only returned an ObjectId if generated by the driver. WriteResult::getUpsertedIds() has been improved to support all BSON types. Previously, types that were neither an ObjectId nor an integer were ignored.

This release includes compatibility fixes for PHP 7.2 based on testing with PHP 7.2 RC2. Windows builds now support OpenSSL 1.1.x for PHP 7.1.2 and later. Support for PHP 5.4 has been removed.

This release upgrades our libbson and libmongoc dependencies to 1.8.0.

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

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

Thanks

Thanks for our community contributors for this release:

1.2.11

19 Sep 19:19
Compare
Choose a tag to compare

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

Release Highlights

This release allows Windows builds to support OpenSSL 1.1.x for PHP 7.1.2 and later.

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

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.3.0RC1

14 Sep 20:16
Compare
Choose a tag to compare
1.3.0RC1 Pre-release
Pre-release

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

Release Highlights

This release includes compatibility fixes for PHP 7.2, which were uncovered by testing against PHP 7.2 RC1. Windows builds now support OpenSSL 1.1.x for PHP 7.1.2 and later.

Support for PHP 5.4 has been removed.

The ObjectID class has been renamed to ObjectId. As class names in PHP are case-insensitive, this change may go unnoticed; however, users are encouraged to use the canonical spelling.

This release upgrades our libbson and libmongoc dependencies to 1.8.0.

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

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-beta

or update with:

pecl upgrade mongodb-beta

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

1.2.10

07 Sep 15:42
Compare
Choose a tag to compare

The PHP team is happy to announce that version 1.2.10 of our new mongodb PHP extension is now available on PECL.

Release Highlights

This release includes compatibility fixes for PHP 7.2, which were uncovered by testing against PHP 7.2 RC1. This testing also revealed an outstanding bug where the driver might alter memory of the return value for Persistable::bsonSerialize().

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

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.3.0beta1

14 Sep 20:06
Compare
Choose a tag to compare
1.3.0beta1 Pre-release
Pre-release

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

Release Highlights

The driver now provides an API for monitoring database commands, which complies with the Command Monitoring specification. This API exists within the MongoDB\Driver\Monitoring namespace and is demonstrated in the Application Performance Monitoring (APM) tutorial.

New BSON functions have been introduced to support output formats defined in the Extended JSON specification:

The MongoDB\BSON\fromJSON() function has been enhanced to parse canonical and relaxed extended JSON, in addition to the legacy format. The jsonSerialize() method on BSON classes implementing JsonSerializable has not changed; those methods continue to return data in the legacy format.

The Timestamp class now has getIncrement() and getTimestamp() methods, which return 32-bit integers for each component. The Binary class now enforces a 16-byte data length for UUID subtypes 0x03 and 0x04. All BSON type classes now implement a corresponding interface.

The ReadConcern and WriteConcern classes now have an isDefault() method, which checks whether the object was constructed without any options. This is most useful for inspecting the objects returned by Manager::getReadConcern() and Manager::getWriteConcern(). The PHP library utilizes this method to decide whether a read concern or write concern should be omitted from a database command.

BulkWrite::insert() will now always return the inserted document's ID. Previously, it only returned an ObjectId if generated by the driver. WriteResult::getUpsertedIds() has been improved to support all BSON types. Previously, types that were neither an ObjectId nor an integer were ignored.

This release upgrades our libbson and libmongoc dependencies to 1.7.0.

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

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-beta

or update with:

pecl upgrade mongodb-beta

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

Thanks

Thanks for our community contributors for this release:

1.2.9

04 May 16:47
Compare
Choose a tag to compare

The PHP team is happy to announce that version 1.2.9 of our new mongodb PHP extension is now available on PECL.

Release Highlights

This release improves recursion detection during BSON encoding and will now throw an exception if a circular reference is encountered.

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

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.2.8

20 Mar 17:41
Compare
Choose a tag to compare

The PHP team is happy to announce that version 1.2.8 of our new mongodb PHP extension is now available on PECL.

Release Highlights

This release includes no user-facing changes. It defines an internal constant to allow compatibility with the Pickle PHP extension installer.

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

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.2.7

15 Mar 17:57
Compare
Choose a tag to compare

The PHP team is happy to announce that version 1.2.7 of our new mongodb PHP extension is now available on PECL.

Release Highlights

This release fixes two outstanding memory leaks related to connection persistence and BSON encoding.

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

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.2.6

07 Mar 19:27
Compare
Choose a tag to compare

The PHP team is happy to announce that version 1.2.6 of our new mongodb PHP extension is now available on PECL.

Release Highlights

This release addresses two interrelated issues where forked child processes might re-use or destroy persisted libmongoc clients created by a parent process. Users are still advised not to share MongoDB\Driver\Manager objects between threads and processes.

This release upgrades our libbson and libmongoc dependencies to 1.5.5, which fixes the localThresholdMS URI option's default value and thus the behavior of read preference mode nearest. Additionally, it fixes a crash after executing a query with a projection containing an empty string key.

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

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.2.5

31 Jan 18:29
Compare
Choose a tag to compare

The PHP team is happy to announce that version 1.2.5 of our new mongodb PHP extension is now available on PECL.

This release addresses a Windows build error and is otherwise functionally identical to 1.2.4.

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