Skip to content

Final API?

Pre-release
Pre-release
Compare
Choose a tag to compare
@bjori bjori released this 11 Mar 18:04

This release aims to make hopefully final modifications to the phongo API

  • Renamed bulk operations to "BulkWrite" (intentionally not mentioning the previous name to reduce confusion! :D)
  • SSL fixes for PHP5.6
  • Fixed ext/curl and OpenSSL race condition (leading to nothing but segfaults)
  • Exceptions are now always throw on failure (not fulfilling WriteConcern is a failure!)
  • BulkWrites always throw BulkWriteException on failure, wrapping the reason
  • Added ExecutionTimeoutException for maxTimeMS failures
  • Simplified the Query object, making it MongoDB 3.1 compatible
  • Consolidated Result classes into just Result (queries/commands) and WriteResult (writes)
  • HHVM cannot throw InvalidArgumentException on failure, so we are forced to return NULL instead.

Documentations and Getting Started Guides are coming shortly.
For super-early adopters; php --re phongo

Full release notes

https://github.com/10gen-labs/mongo-php-driver-prototype/blob/master/RELEASE-0.1.5

Installing

$ wget https://github.com/10gen-labs/mongo-php-driver-prototype/releases/download/0.1.5/phongo-0.1.5.tgz
$ pecl install phongo-0.1.5.tgz
$ echo "extension=phongo.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`