1.2.0alpha1
Pre-releaseThe PHP team is happy to announce that version 1.2.0alpha1 of our new mongodb PHP extension is now available on PECL.
Release Highlights
This is the first preview release for 1.2.0. It contains a significant amount of internal refactoring to remove our dependence on libmongoc's private API, which is much awaited good news for users who install the driver through their OS package manager (e.g. CentOS, Debian). This release also upgrades our libbson and libmongoc dependencies to 1.4.0-beta1. The final 1.2.0 release will depend on libson and libmongoc 1.4.0.
Internal changes aside, we did manage to sneak a few new features into this release. BSON classes now support PHP serialization and var_export()
. JSON serialization is still not implemented, but we plan to have that ready for 1.2.0. The UTCDateTime constructor now defaults to the current time if no argument is provided and can also accept a DateTimeInterface instance. The Binary and Javascript types now have __toString()
methods that return their binary data and code strings, respectively. The JavaScript class also has new getCode()
and getScope()
methods, which were curiously absent in previous versions.
A complete list of resolved issues in this release may be found at:
https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=12484&version=17200
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-alpha
or update with:
pecl upgrade mongodb-alpha
Windows binaries are not available for this release due to a build issue; however, they should be available for the next alpha or beta release.
Thanks
Thanks for our community contributors for 1.2.0alpha1: