Skip to content

1.2.2

Compare
Choose a tag to compare
@jmikola jmikola released this 13 Dec 20:34

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