The MongoDB PHP Driver version 1.5.0 released!
We are glad to announce the release of version 1.5.0 of the MongoDB PHP
driver.
It supports all new features for MongoDB 2.6, including:
- Aggregate can now return a cursor
- Aggregation pipelines can now be explained
- Possible to set maxTimeMS for commands and queries
- Transparent support for the new command-based MongoDB write API
- New MongoWriteBatch classes (using the new MongoDB write API)
- Support for MongoDB Enterprise features (e.g. Kerberos, LDAP, X509)
- Option to tune acceptable server latency for secondary reads
(secondaryAcceptableLatencyMS)
With this release, some driver functionality which was previously
documented as deprecated will now formally raise deprecation notices. This
includes:
- Instantiating the Mongo class
- Calling MongoCursor::slaveOkay()
- "wtimeout" and "safe" options for MongoCollection write operations
- Manipulating public properties on core classes (such as $collection->w)
Note: No previously deprecated features have been removed.
Changes in behavior:
- Setting the mongo.native_long INI setting now raises an error on 32-bit
platforms, and now defaults to true for 64-bit platforms.
You can find a list of all the resolved issues at:
https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10007&version=12438
If you find any issues, please report them through JIRA at:
https://jira.mongodb.org/browse/PHP
We'd be more than happy to have a look at them, but please do provide as
much information as possible in order for us to more easily identify and
fix the problem.
The source for the extension can be found at:
http://pecl.php.net/mongo
You can either download and install the source manually, or you can install
the extension with:
pecl install mongo
or update with:
pecl upgrade mongo
Windows binaries for most PHP versions will be available via PECL:
http://pecl.php.net/mongo