Version 8 by Tim Smith
on Dec 19, 2012 16:07.

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (9)

View Page History
php-ext-couchbase: [http://www.couchbase.com/develop/php/current]

The Couchbase PHP Client Library is supported on PHP versions 5.3 and later. Couchbase does not support PHP 5.2 and earlier, although basic functionality may work OK for some users.

h2. Version Matrix

function my_couchbase_connect($servers) {
do {
if (empty($servers)) {
echo "no suitable server found";
return false;
$server = array_pop($servers);
$cb = couchbase_connect($server);
} while (!$cb);

return $cb;
h2. Installing From Source

It is a common need to install from source (there is a lot of variation in the Zend API revisions). The symptom is something like:

The first thing to do is install libcouchbase, the C client library for Couchbase, including development files.
{code}
$ php -i > /dev/null
PHP Warning: PHP Startup: couchbase: Unable to initialize module
Module compiled with module API=20090626, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
{code}

_It is not required to build both libcouchbase and the php extension from source. As long as you have the matching version of libcouchbase installed (and its development headers, i.e. libcouchbase-dev or libcouchbase-devel) it is possible to compile and build the PHP extension._
The first thing to do is install libcouchbase, the C client library for Couchbase, including development files. We recommend, where possible, installing binary packages of libcouchbase rather than building it from source. Use the above version matrix to determine the version you need.

Use the above version matrix to determine the version you need.

For php-ext-couchbase source installation, do the following: