This is the second release of the Couchbase PHP SDK which is compatible with Couchbase Server 1.8 and Couchbase Server 2.0. It is intended to be compatible with version 1.0 of the SDK. New features for this SDK include:
New functions for writing and accessing data using pessimistic locking, which are also known as get-and-lock functions.
Specify durability. You can now indicate how many replica nodes an item will be written to; you can also request a return value if Couchbase Server has successfully persisted an item to disk.
Indexing and querying. Ability to query a view and handle result sets returned by Couchbase Server.
To browse existing issues and fixes in this release, see PHP SDK Issues Tracking.
Warn for incorrect view parameters.
Add support for unlock command.
Completely document constants used as options and result codes for the PHP SDK.
PHP Client also now catches and processes 'object too large' errors coming from underlying C library.
Depending on the platform you are using, you may also need to reference the JSON library in your PHP configuration file:
If you are using the Couchbase PHP SDK on Red Hat/CentOS or their derivatives, be aware that JSON encoding for PHP is by default not available to other extensions. As a result you will receive an error resolving the php_json_encode symbol. The solution is to edit the php.ini file to load the JSON library and also load the Couchbase library. Please note that you should provide these two extensions in the order shown below:
Improve method signature for
move the $cas_token parameter to the second parameter, and
improve handling of callback function provided as parameter.
Documentation incorrectly stated that version returns the version of the server; this in fact returns the version of the library. This has been fixed.
Provide tarball releases for PHP SDKs.
When doing a query against a view, the php application segfaulted. This is fixed.
PHP SDK 1.1.0 is not yet available on Windows as a supported library. There is however an experimental build of the PHP SDK 1.1.0 which you can download and preview on a development system.