Skip to content

1.3.2

Compare
Choose a tag to compare
@jmikola jmikola released this 30 Oct 21:09

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

Release Highlights

This release reverts behavior introduced in 1.3.0 to throw an exception when the driver encounters an unsupported BSON type (i.e. undefined, symbol, DBPointer).

The undefined, symbol, and DBPointer types have long been deprecated in the BSON specification and were also never fully supported in the legacy mongo extension (e.g. undefined in BSON was converted to null in PHP). In versions prior to 1.3.0, the mongodb extension ignored any fields containing an undefined, symbol, or DBPointer value when converting BSON to PHP. With this release, such fields will once again be ignored; however, the driver will also log a warning to the debug log (accessible via mongodb.debug) when it encounters one of these types.

We ultimately expect to introduce classes for the undefined, symbol, and DBPointer types in 1.4.0 (see: PHPC-1027), which will allow the driver to round-trip BSON documents without silently dropping fields that contain an undefined, symbol, or DBPointer type.

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

Documentation

Documentation is available on PHP.net:
http://php.net/set.mongodb

Feedback

Any bugs or issues may be reported via the following form:
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