Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A PHP extension wrapping libcouchbase

branch: master

This branch is 0 commits ahead and 0 commits behind master

Corrected segfault when using unwriteable cache directory.

We were not exiting the control flow properly for a
certain type of error.

Change-Id: I66775e0d0cd10ec968dbc0f6a6fc94f943d9ee0e
Reviewed-on: http://review.couchbase.org/34644
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Brett Lawson <brett19@gmail.com>
latest commit 3aa083c731
Brett Lawson brett19 authored
Octocat-spinner-32 example Added * to comment to allow it to be used by phpdoc. October 08, 2013
Octocat-spinner-32 fastlz Bundle fastlz November 08, 2012
Octocat-spinner-32 management PCBC-256: Added missing connect call for lcb management instances. December 10, 2013
Octocat-spinner-32 package Add bucket manipulation example April 02, 2013
Octocat-spinner-32 tests PCBC-251: Add missing prefix for incr/decr/unlock October 01, 2013
Octocat-spinner-32 tools Fixup whitespace November 21, 2012
Octocat-spinner-32 .gitignore PCBC-79 Allow to specify licouchbase location for tarballs November 13, 2012
Octocat-spinner-32 CONTRIBUTING.md Add information on how to contribute to the driver December 04, 2012
Octocat-spinner-32 CREDITS Update CREDITS file May 06, 2013
Octocat-spinner-32 LICENSE Add package build script. January 20, 2012
Octocat-spinner-32 README.md PCBC-33: Add support for igbinary April 17, 2013
Octocat-spinner-32 TESTING.pod Add testing howto November 07, 2012
Octocat-spinner-32 apidecl.c PCBC-246 Add support for LCB_CNTL_SKIP_CONFIGURATION_ERRORS_ON_CONNECT August 29, 2013
Octocat-spinner-32 apidecl.h Add missing license headers July 12, 2013
Octocat-spinner-32 arithmetic.c PCBC-251: Add missing prefix for incr/decr/unlock October 01, 2013
Octocat-spinner-32 ccache.c Add missing license headers July 12, 2013
Octocat-spinner-32 compress.c Add missing license headers July 12, 2013
Octocat-spinner-32 config.m4 Updated support for getReplica July 12, 2013
Octocat-spinner-32 config.w32 Updated support for getReplica July 12, 2013
Octocat-spinner-32 convert.c Remove bogus {{{ }}} August 30, 2013
Octocat-spinner-32 couchbase.c Remove bogus {{{ }}} August 30, 2013
Octocat-spinner-32 couchbase.php Initial commit, finish ext skeleton. January 10, 2012
Octocat-spinner-32 create.c Corrected segfault when using unwriteable cache directory. March 18, 2014
Octocat-spinner-32 designdoc.c Add missing license headers July 12, 2013
Octocat-spinner-32 error.c Add missing license headers July 12, 2013
Octocat-spinner-32 exceptions.c Add missing license headers July 12, 2013
Octocat-spinner-32 exceptions.h Add missing license headers July 12, 2013
Octocat-spinner-32 flush.c PCBC-241: Fix compile warnings August 26, 2013
Octocat-spinner-32 get.c PCBC-241: Fix compile warnings August 26, 2013
Octocat-spinner-32 ht.c Add missing license headers July 12, 2013
Octocat-spinner-32 ht.h Add missing license headers July 12, 2013
Octocat-spinner-32 internal.h PCBC-246 Add support for LCB_CNTL_SKIP_CONFIGURATION_ERRORS_ON_CONNECT August 29, 2013
Octocat-spinner-32 misc.c Add missing license headers July 12, 2013
Octocat-spinner-32 observe.c Fixup observe test failure September 26, 2013
Octocat-spinner-32 options.c Add missing license headers July 12, 2013
Octocat-spinner-32 package.xml Updated package metadata for 1.2.1 release. October 08, 2013
Octocat-spinner-32 php_couchbase.h Next version should be 1.2.0 September 26, 2013
Octocat-spinner-32 remove.c PCBC-251: Add missing prefix for incr/decr/unlock October 01, 2013
Octocat-spinner-32 replica.c Change too generic function name October 14, 2013
Octocat-spinner-32 resget.h Add missing license headers July 12, 2013
Octocat-spinner-32 resmgr.c Add missing license headers July 12, 2013
Octocat-spinner-32 simple_observe.c PCBC-241: Fix compile warnings August 26, 2013
Octocat-spinner-32 simple_observe.h Add missing license headers July 12, 2013
Octocat-spinner-32 stat.c Remove bogus {{{ }}} August 30, 2013
Octocat-spinner-32 store.c Revert "Revert "PCBC-227: Allow store of pure numeric keys"" September 26, 2013
Octocat-spinner-32 timeout.c Add missing license headers July 12, 2013
Octocat-spinner-32 touch.c PCBC-241: Fix compile warnings August 26, 2013
Octocat-spinner-32 unlock.c PCBC-251: Add missing prefix for incr/decr/unlock October 01, 2013
Octocat-spinner-32 version.c Add missing license headers July 12, 2013
Octocat-spinner-32 viewopts.c Add missing license headers July 12, 2013
Octocat-spinner-32 views.c PCBC-226 Use HTTP POST if "keys" are specified September 01, 2013
Octocat-spinner-32 views.h Add missing license headers July 12, 2013
README.md

ext/couchbase

A PHP extension wrapping libcouchbase.

Dependencies

libcouchbase igbinary (optional)

Installation

End users should install the module by executing:

$ pecl install couchbase

Developers who want to build the latest bits from the source repository may execute the following steps

$ phpize
$ ./configure
$ make
$ make test

Running make test assumes that you have a Couchbase server listening on port 127.0.0.1:8091

If you are using a webserver installation of PHP, you might need to restart your webserver.

If you have igbinary installed, make test will most likely fail with an error message reporing a missing symbol. Don't worry; it has an explanation. During make test php generates another php.ini file for us which don't include the igbinary module. To work around this all you need to do is to edit the Makefile and add the following as the first parameter parameter to run-tests.php:

-d extension=/absolute/path/to/igbinary.so

First Step

Create a new script test.php:

<?php
$cb = new Couchbase("127.0.0.1:8091", "Administrator",
                    "password", "default");
$cb->set("a", 1);
$a = $cb->get("a");
echo $a;
?>

Compatibility

PHP 5.3 or later.

Windows support is coming in the next release.

License

Apache License 2.0

Credits

See CREDITS file. Thanks all!

Copyright

(c) 2011, 2012, 2013 Couchbase

Contributions

If you'd like to contribute to the project, please look in CONTRIBUTING.md.

Something went wrong with that request. Please try again.