I am attempting to determine if PHP 5.6 is compatible with the couchbase PHP SDK 2.0.3(latest).
I have a system running couchbase server 2.0.1 with PHP 5.4 via Zend Server. I upgraded Zend Server to the new 8 BETA with PHP 5.6. After the upgrade completes it states that my couchbase extension is not compatible…please make it match. I do some research and decide to try the new CB3. After removing couchbase 2.0.1 and installing 3.0.1, I follow the CSDK(2.4) PHP SDK(2.0.3) installation and all looks fine.
The Couchbase server is running. I create a dummy PHP couchbase page:
<?php $cb = new Couchbase("127.0.0.1:8091", "Administrator", "couchbasepassword", "Session"); $cb->set("a", 101); var_dump($cb->get("a")); ?>
and after running
/usr/local/zend/bin/php /var/www/html/couchbasetest.php it outputs:
“Fatal error: Class ‘Couchbase’ not found in /var/www/html/couchbasetest.php on line 2”
After looking around I decide to see if 5.6 is not compatible. The PECL page shows that it is compatible with version 5.3.0 and higher. The couchbase PHP SDK page indicates only 5.5 and 5.4
So is it compatible?