Releases: mongodb/mongo-php-driver
1.2.10
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
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
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
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
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
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
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
1.2.4
The PHP team is happy to announce that version 1.2.4 of our new mongodb PHP extension is now available on PECL.
Release Highlights
This release fixes a memory leak in the BSON type classes, which was triggered during PHP's garbage collection. Additionally, it incorporates a bug fix from libmongoc where specifying a read concern for a query would lead to an error in the getMore
command issued during cursor iteration.
This release upgrades our libbson and libmongoc dependencies to 1.5.4.
A complete list of resolved issues in this release may be found at:
https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=12484&version=17921
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.3
The PHP team is happy to announce that version 1.2.3 of our new mongodb PHP extension is now available on PECL.
Release Highlights
On Windows platforms, the system CA store is now opened with a read-only flag. This resolves an issue for some Windows users where the driver was unable to properly verify the server's SSL certificate due to operating system permissions.
This release improves error reporting when the required JSON extension is missing. This should avoid the cryptic "undefined symbol" errors that users on some platforms (e.g. Debian, Red Hat) were encountering since the 1.2.0 release.
Several bug fixes for BSON encoding and decoding have been implemented, which enhance the driver's compliance with the BSON corpus specification test suite. Of note, PHPC-883 changes how BSON arrays types are decoded by disregarding each element's string keys and appending the elements to a PHP array in sequence. This ensure that the driver produces a packed PHP array (i.e. keys start at 0
and continue in sequence without gaps). Most users should not be affected by this change, as well-formed BSON uses sequential, numeric strings for such string keys.
Lastly, phpinfo()
output has been improved and will now show details about the SSL and SASL libraries in use.
This release upgrades our libbson and libmongoc dependencies to 1.5.3.
A complete list of resolved issues in this release may be found at:
https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=12484&version=17830
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.2
The PHP team is happy to announce that version 1.2.2 of our new mongodb PHP extension is now available on PECL.
Release Highlights
This release fixes a few bugs responsible for memory leaks and crashes.
For ZTS users (e.g. Apache), we resolved a crash due to initializing the persistent connection HashTable when the extension is first loaded. For OPcache users, we resolved a possible crash when constructing a MongoDB\Driver\Manager
or MongoDB\Driver\ReadPreference
with tag sets. On a related note, we addressed a bug where arguments passed to MongoDB\Driver\Manager
or MongoDB\Driver\ReadPreference
constructors might be changed.
MongoDB\Driver\Cursor::setTypeMap()
no longer leaks the cursor's current element if called during iteration. When setTypeMap()
is invoked, it will now free the current element and apply the new type map immediately. Previously, a new type map would only apply to the next element(s). This change does not affect users iterating a cursor with foreach
; however, it will be evident if the cursor is decorated with an IteratorIterator and the iteration methods are invoked directly.
Lastly, this fixes an issue with the Windows build script that prevent the libmongoc and libbson version numbers from being properly reported by phpinfo()
.
A complete list of resolved issues in this release may be found at:
https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=12484&version=17801
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