From 560b736a9a353ff9d3df44d31f7362e14ec9e139 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 12 May 2014 07:27:45 +0200 Subject: php-pecl-couchbase: 1.2.2 (stable) --- REFLECTION | 1663 +++++++++++++++++++++++++++++++++++++++++++++++ couchbase-zts.patch | 50 -- php-pecl-couchbase.spec | 22 +- 3 files changed, 1670 insertions(+), 65 deletions(-) create mode 100644 REFLECTION delete mode 100644 couchbase-zts.patch diff --git a/REFLECTION b/REFLECTION new file mode 100644 index 0000000..f17af84 --- /dev/null +++ b/REFLECTION @@ -0,0 +1,1663 @@ +Extension [ extension #154 couchbase version 1.2.2 ] { + + - Dependencies { + Dependency [ json (Required) ] + Dependency [ igbinary (Required) ] + } + + - INI { + Entry [ couchbase.config_cache ] + Current = '' + } + Entry [ couchbase.serializer ] + Current = 'php' + } + Entry [ couchbase.compressor ] + Current = 'none' + } + Entry [ couchbase.compression_factor ] + Current = '1.3' + } + Entry [ couchbase.compression_threshold ] + Current = '2000' + } + Entry [ couchbase.durability_default_poll_interval ] + Current = '100000' + } + Entry [ couchbase.durability_default_timeout ] + Current = '40000000' + } + Entry [ couchbase.view_timeout ] + Current = '75' + } + Entry [ couchbase.instance.persistent ] + Current = '1' + } + Entry [ couchbase.restflush ] + Current = '1' + } + Entry [ couchbase.skip_config_errors_on_connect ] + Current = '' + } + } + + - Constants [34] { + Constant [ integer COUCHBASE_SUCCESS ] { 0 } + Constant [ integer COUCHBASE_AUTH_CONTINUE ] { 1 } + Constant [ integer COUCHBASE_DELTA_BADVAL ] { 3 } + Constant [ integer COUCHBASE_E2BIG ] { 4 } + Constant [ integer COUCHBASE_EBUSY ] { 5 } + Constant [ integer COUCHBASE_EINTERNAL ] { 6 } + Constant [ integer COUCHBASE_EINVAL ] { 7 } + Constant [ integer COUCHBASE_ENOMEM ] { 8 } + Constant [ integer COUCHBASE_ERROR ] { 10 } + Constant [ integer COUCHBASE_ETMPFAIL ] { 11 } + Constant [ integer COUCHBASE_KEY_EEXISTS ] { 12 } + Constant [ integer COUCHBASE_KEY_ENOENT ] { 13 } + Constant [ integer COUCHBASE_NETWORK_ERROR ] { 16 } + Constant [ integer COUCHBASE_NOT_MY_VBUCKET ] { 17 } + Constant [ integer COUCHBASE_NOT_STORED ] { 18 } + Constant [ integer COUCHBASE_NOT_SUPPORTED ] { 19 } + Constant [ integer COUCHBASE_UNKNOWN_COMMAND ] { 20 } + Constant [ integer COUCHBASE_UNKNOWN_HOST ] { 21 } + Constant [ integer COUCHBASE_OPT_SERIALIZER ] { 1 } + Constant [ integer COUCHBASE_OPT_COMPRESSION ] { 2 } + Constant [ integer COUCHBASE_OPT_PREFIX_KEY ] { 3 } + Constant [ integer COUCHBASE_OPT_IGNOREFLAGS ] { 4 } + Constant [ integer COUCHBASE_SERIALIZER_PHP ] { 0 } + Constant [ integer COUCHBASE_SERIALIZER_JSON ] { 1 } + Constant [ integer COUCHBASE_SERIALIZER_JSON_ARRAY ] { 2 } + Constant [ integer COUCHBASE_SERIALIZER_IGBINARY ] { 3 } + Constant [ integer COUCHBASE_COMPRESSION_NONE ] { 0 } + Constant [ integer COUCHBASE_COMPRESSION_FASTLZ ] { 2 } + Constant [ integer COUCHBASE_COMPRESSION_ZLIB ] { 1 } + Constant [ integer COUCHBASE_GET_PRESERVE_ORDER ] { 1 } + Constant [ integer COUCHBASE_OPT_VOPTS_PASSTHROUGH ] { 5 } + Constant [ integer COUCHBASE_REPLICA_FIRST ] { 0 } + Constant [ integer COUCHBASE_REPLICA_ALL ] { 1 } + Constant [ integer COUCHBASE_REPLICA_SELECT ] { 2 } + } + + - Functions { + Function [ function couchbase_connect ] { + + - Parameters [5] { + Parameter #0 [ $host ] + Parameter #1 [ $user ] + Parameter #2 [ $password ] + Parameter #3 [ $bucket ] + Parameter #4 [ $persistent ] + } + } + Function [ function couchbase_add ] { + + - Parameters [4] { + Parameter #0 [ $resource ] + Parameter #1 [ $key ] + Parameter #2 [ $value ] + Parameter #3 [ $expiration ] + } + } + Function [ function couchbase_set ] { + + - Parameters [5] { + Parameter #0 [ $resource ] + Parameter #1 [ $key ] + Parameter #2 [ $value ] + Parameter #3 [ $expiration ] + Parameter #4 [ $cas ] + } + } + Function [ function couchbase_set_multi ] { + + - Parameters [3] { + Parameter #0 [ $resource ] + Parameter #1 [ array $values ] + Parameter #2 [ $expiration ] + } + } + Function [ function couchbase_replace ] { + + - Parameters [5] { + Parameter #0 [ $resource ] + Parameter #1 [ $key ] + Parameter #2 [ $value ] + Parameter #3 [ $expiration ] + Parameter #4 [ $cas ] + } + } + Function [ function couchbase_prepend ] { + + - Parameters [5] { + Parameter #0 [ $resource ] + Parameter #1 [ $key ] + Parameter #2 [ $value ] + Parameter #3 [ $expiration ] + Parameter #4 [ $cas ] + } + } + Function [ function couchbase_append ] { + + - Parameters [5] { + Parameter #0 [ $resource ] + Parameter #1 [ $key ] + Parameter #2 [ $value ] + Parameter #3 [ $expiration ] + Parameter #4 [ $cas ] + } + } + Function [ function couchbase_cas ] { + + - Parameters [5] { + Parameter #0 [ $resource ] + Parameter #1 [ $cas ] + Parameter #2 [ $key ] + Parameter #3 [ $value ] + Parameter #4 [ $expiration ] + } + } + Function [ function couchbase_get ] { + + - Parameters [4] { + Parameter #0 [ $resource ] + Parameter #1 [ $key ] + Parameter #2 [ $cache_cb ] + Parameter #3 [ &$cas_token ] + } + } + Function [ function couchbase_get_multi ] { + + - Parameters [4] { + Parameter #0 [ $resource ] + Parameter #1 [ array $keys ] + Parameter #2 [ array or NULL &$cas_tokens ] + Parameter #3 [ $flags ] + } + } + Function [ function couchbase_get_delayed ] { + + - Parameters [6] { + Parameter #0 [ $resource ] + Parameter #1 [ array $keys ] + Parameter #2 [ $with_cas ] + Parameter #3 [ $cb ] + Parameter #4 [ $expiry ] + Parameter #5 [ $lock ] + } + } + Function [ function couchbase_get_and_lock ] { + + - Parameters [4] { + Parameter #0 [ $resource ] + Parameter #1 [ $key ] + Parameter #2 [ &$cas ] + Parameter #3 [ $expiry ] + } + } + Function [ function couchbase_get_and_lock_multi ] { + + - Parameters [5] { + Parameter #0 [ $resource ] + Parameter #1 [ array $keys ] + Parameter #2 [ array or NULL &$cas_tokens ] + Parameter #3 [ $flags ] + Parameter #4 [ $expiry ] + } + } + Function [ function couchbase_get_and_touch ] { + + - Parameters [4] { + Parameter #0 [ $resource ] + Parameter #1 [ $key ] + Parameter #2 [ $expiry ] + Parameter #3 [ &$cas ] + } + } + Function [ function couchbase_get_and_touch_multi ] { + + - Parameters [4] { + Parameter #0 [ $resource ] + Parameter #1 [ array $keys ] + Parameter #2 [ $expiry ] + Parameter #3 [ array or NULL &$cas_tokens ] + } + } + Function [ function couchbase_unlock ] { + + - Parameters [3] { + Parameter #0 [ $resource ] + Parameter #1 [ $key ] + Parameter #2 [ $cas ] + } + } + Function [ function couchbase_touch ] { + + - Parameters [3] { + Parameter #0 [ $resource ] + Parameter #1 [ $key ] + Parameter #2 [ $expiry ] + } + } + Function [ function couchbase_touch_multi ] { + + - Parameters [3] { + Parameter #0 [ $resource ] + Parameter #1 [ array $keys ] + Parameter #2 [ $expiry ] + } + } + Function [ function couchbase_fetch ] { + + - Parameters [1] { + Parameter #0 [ $resource ] + } + } + Function [ function couchbase_fetch_all ] { + + - Parameters [1] { + Parameter #0 [ $resource ] + } + } + Function [ function couchbase_view ] { + + - Parameters [5] { + Parameter #0 [ $resource ] + Parameter #1 [ $doc_name ] + Parameter #2 [ $view_name ] + Parameter #3 [ array $options ] + Parameter #4 [ $return_errors ] + } + } + Function [ function couchbase_view_gen_query ] { + + - Parameters [5] { + Parameter #0 [ $resource ] + Parameter #1 [ $doc_name ] + Parameter #2 [ $view_name ] + Parameter #3 [ array $options ] + Parameter #4 [ $return_errors ] + } + } + Function [ function couchbase_increment ] { + + - Parameters [6] { + Parameter #0 [ $resource ] + Parameter #1 [ $key ] + Parameter #2 [ $offset ] + Parameter #3 [ $create ] + Parameter #4 [ $expiration ] + Parameter #5 [ $initial ] + } + } + Function [ function couchbase_decrement ] { + + - Parameters [6] { + Parameter #0 [ $resource ] + Parameter #1 [ $key ] + Parameter #2 [ $offset ] + Parameter #3 [ $create ] + Parameter #4 [ $expiration ] + Parameter #5 [ $initial ] + } + } + Function [ function couchbase_get_stats ] { + + - Parameters [1] { + Parameter #0 [ $resource ] + } + } + Function [ function couchbase_delete ] { + + - Parameters [3] { + Parameter #0 [ $resource ] + Parameter #1 [ $key ] + Parameter #2 [ $cas ] + } + } + Function [ function couchbase_flush ] { + + - Parameters [1] { + Parameter #0 [ $resource ] + } + } + Function [ function couchbase_get_result_code ] { + + - Parameters [1] { + Parameter #0 [ $resource ] + } + } + Function [ function couchbase_get_result_message ] { + + - Parameters [1] { + Parameter #0 [ $resource ] + } + } + Function [ function couchbase_set_option ] { + + - Parameters [3] { + Parameter #0 [ $resource ] + Parameter #1 [ $option ] + Parameter #2 [ $value ] + } + } + Function [ function couchbase_get_option ] { + + - Parameters [2] { + Parameter #0 [ $resource ] + Parameter #1 [ $option ] + } + } + Function [ function couchbase_get_servers ] { + + - Parameters [1] { + Parameter #0 [ $resource ] + } + } + Function [ function couchbase_get_num_replicas ] { + + - Parameters [1] { + Parameter #0 [ $resource ] + } + } + Function [ function couchbase_get_version ] { + + - Parameters [1] { + Parameter #0 [ $resource ] + } + } + Function [ function couchbase_get_client_version ] { + + - Parameters [0] { + } + } + Function [ function couchbase_observe ] { + + - Parameters [4] { + Parameter #0 [ $resource ] + Parameter #1 [ $key ] + Parameter #2 [ $cas ] + Parameter #3 [ &$details ] + } + } + Function [ function couchbase_observe_multi ] { + + - Parameters [3] { + Parameter #0 [ $resource ] + Parameter #1 [ array $key_to_cas ] + Parameter #2 [ &$details ] + } + } + Function [ function couchbase_key_durability ] { + + - Parameters [4] { + Parameter #0 [ $resource ] + Parameter #1 [ $key ] + Parameter #2 [ $cas ] + Parameter #3 [ array $durability ] + } + } + Function [ function couchbase_key_durability_multi ] { + + - Parameters [3] { + Parameter #0 [ $resource ] + Parameter #1 [ array $key_to_cas ] + Parameter #2 [ array $durability ] + } + } + Function [ function couchbase_get_design_doc ] { + + - Parameters [2] { + Parameter #0 [ $resource ] + Parameter #1 [ $name ] + } + } + Function [ function couchbase_set_design_doc ] { + + - Parameters [3] { + Parameter #0 [ $resource ] + Parameter #1 [ $name ] + Parameter #2 [ $doc ] + } + } + Function [ function couchbase_delete_design_doc ] { + + - Parameters [2] { + Parameter #0 [ $resource ] + Parameter #1 [ $name ] + } + } + Function [ function couchbase_list_design_docs ] { + + - Parameters [1] { + Parameter #0 [ $resource ] + } + } + Function [ function couchbase_get_timeout ] { + + - Parameters [1] { + Parameter #0 [ $resource ] + } + } + Function [ function couchbase_set_timeout ] { + + - Parameters [2] { + Parameter #0 [ $resource ] + Parameter #1 [ $timeout ] + } + } + } + + - Classes [15] { + Class [ class Couchbase ] { + + - Constants [34] { + Constant [ integer SUCCESS ] { 0 } + Constant [ integer AUTH_CONTINUE ] { 1 } + Constant [ integer DELTA_BADVAL ] { 3 } + Constant [ integer E2BIG ] { 4 } + Constant [ integer EBUSY ] { 5 } + Constant [ integer EINTERNAL ] { 6 } + Constant [ integer EINVAL ] { 7 } + Constant [ integer ENOMEM ] { 8 } + Constant [ integer ERROR ] { 10 } + Constant [ integer ETMPFAIL ] { 11 } + Constant [ integer KEY_EEXISTS ] { 12 } + Constant [ integer KEY_ENOENT ] { 13 } + Constant [ integer NETWORK_ERROR ] { 16 } + Constant [ integer NOT_MY_VBUCKET ] { 17 } + Constant [ integer NOT_STORED ] { 18 } + Constant [ integer NOT_SUPPORTED ] { 19 } + Constant [ integer UNKNOWN_COMMAND ] { 20 } + Constant [ integer UNKNOWN_HOST ] { 21 } + Constant [ integer OPT_SERIALIZER ] { 1 } + Constant [ integer OPT_COMPRESSION ] { 2 } + Constant [ integer OPT_PREFIX_KEY ] { 3 } + Constant [ integer OPT_IGNOREFLAGS ] { 4 } + Constant [ integer SERIALIZER_PHP ] { 0 } + Constant [ integer SERIALIZER_JSON ] { 1 } + Constant [ integer SERIALIZER_JSON_ARRAY ] { 2 } + Constant [ integer SERIALIZER_IGBINARY ] { 3 } + Constant [ integer COMPRESSION_NONE ] { 0 } + Constant [ integer COMPRESSION_FASTLZ ] { 2 } + Constant [ integer COMPRESSION_ZLIB ] { 1 } + Constant [ integer GET_PRESERVE_ORDER ] { 1 } + Constant [ integer OPT_VOPTS_PASSTHROUGH ] { 5 } + Constant [ integer REPLICA_FIRST ] { 0 } + Constant [ integer REPLICA_ALL ] { 1 } + Constant [ integer REPLICA_SELECT ] { 2 } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [1] { + Property [ private $_handle ] + } + + - Methods [46] { + Method [ public method __construct ] { + + - Parameters [5] { + Parameter #0 [ $hosts ] + Parameter #1 [ $user ] + Parameter #2 [ $password ] + Parameter #3 [ $bucket ] + Parameter #4 [ $persistent ] + } + } + + Method [ public method add ] { + + - Parameters [5] { + Parameter #0 [ $id ] + Parameter #1 [ $document ] + Parameter #2 [ $expiry ] + Parameter #3 [ $persist_to ] + Parameter #4 [ $replicate_to ] + } + } + + Method [ public method set ] { + + - Parameters [6] { + Parameter #0 [ $id ] + Parameter #1 [ $document ] + Parameter #2 [ $expiry ] + Parameter #3 [ $cas ] + Parameter #4 [ $persist_to ] + Parameter #5 [ $replicate_to ] + } + } + + Method [ public method setMulti ] { + + - Parameters [4] { + Parameter #0 [ array $documents ] + Parameter #1 [ $expiry ] + Parameter #2 [ $persist_to ] + Parameter #3 [ $replicate_to ] + } + } + + Method [ public method replace ] { + + - Parameters [6] { + Parameter #0 [ $id ] + Parameter #1 [ $document ] + Parameter #2 [ $expiry ] + Parameter #3 [ $cas ] + Parameter #4 [ $persist_to ] + Parameter #5 [ $replicate_to ] + } + } + + Method [ public method prepend ] { + + - Parameters [6] { + Parameter #0 [ $id ] + Parameter #1 [ $document ] + Parameter #2 [ $expiry ] + Parameter #3 [ $cas ] + Parameter #4 [ $persist_to ] + Parameter #5 [ $replicate_to ] + } + } + + Method [ public method append ] { + + - Parameters [6] { + Parameter #0 [ $id ] + Parameter #1 [ $document ] + Parameter #2 [ $expiry ] + Parameter #3 [ $cas ] + Parameter #4 [ $persist_to ] + Parameter #5 [ $replicate_to ] + } + } + + Method [ public method cas ] { + + - Parameters [4] { + Parameter #0 [ $cas ] + Parameter #1 [ $id ] + Parameter #2 [ $document ] + Parameter #3 [ $expiry ] + } + } + + Method [ public method get ] { + + - Parameters [3] { + Parameter #0 [ $id ] + Parameter #1 [ $callback ] + Parameter #2 [ &$cas ] + } + } + + Method [ public method getMulti ] { + + - Parameters [3] { + Parameter #0 [ array $ids ] + Parameter #1 [ array or NULL &$cas ] + Parameter #2 [ $flags ] + } + } + + Method [ public method getReplica ] { + + - Parameters [2] { + Parameter #0 [ $ids ] + Parameter #1 [ $strategy ] + } + } + + Method [ public method getDelayed ] { + + - Parameters [5] { + Parameter #0 [ array $ids ] + Parameter #1 [ $with_cas ] + Parameter #2 [ $callback ] + Parameter #3 [ $expiry ] + Parameter #4 [ $lock ] + } + } + + Method [ public method getAndLock ] { + + - Parameters [3] { + Parameter #0 [ $ids ] + Parameter #1 [ &$cas ] + Parameter #2 [ $expiry ] + } + } + + Method [ public method getAndLockMulti ] { + + - Parameters [4] { + Parameter #0 [ array $ids ] + Parameter #1 [ array or NULL &$cas ] + Parameter #2 [ $flags ] + Parameter #3 [ $expiry ] + } + } + + Method [ public method getAndTouch ] { + + - Parameters [3] { + Parameter #0 [ $id ] + Parameter #1 [ $expiry ] + Parameter #2 [ &$cas ] + } + } + + Method [ public method getAndTouchMulti ] { + + - Parameters [3] { + Parameter #0 [ array $ids ] + Parameter #1 [ $expiry ] + Parameter #2 [ array or NULL &$cas ] + } + } + + Method [ public method unlock ] { + + - Parameters [2] { + Parameter #0 [ $id ] + Parameter #1 [ $cas ] + } + } + + Method [ public method touch ] { + + - Parameters [2] { + Parameter #0 [ $id ] + Parameter #1 [ $expiry ] + } + } + + Method [ public method touchMulti ] { + + - Parameters [2] { + Parameter #0 [ array $ids ] + Parameter #1 [ $expiry ] + } + } + + Method [ public method fetch ] { + + - Parameters [0] { + } + } + + Method [ public method fetchAll ] { + + - Parameters [0] { + } + } + + Method [ public method view ] { + + - Parameters [4] { + Parameter #0 [ $document ] + Parameter #1 [ $view ] + Parameter #2 [ array $options ] + Parameter #3 [ $return_errors ] + } + } + + Method [ public method viewGenQuery ] { + + - Parameters [4] { + Parameter #0 [ $doc_name ] + Parameter #1 [ $view_name ] + Parameter #2 [ array $options ] + Parameter #3 [ $return_errors ] + } + } + + Method [ public method delete ] { + + - Parameters [4] { + Parameter #0 [ $id ] + Parameter #1 [ $cas ] + Parameter #2 [ $persist_to ] + Parameter #3 [ $replicate_to ] + } + } + + Method [ public method getStats ] { + + - Parameters [0] { + } + } + + Method [ public method flush ] { + + - Parameters [0] { + } + } + + Method [ public method increment ] { + + - Parameters [5] { + Parameter #0 [ $id ] + Parameter #1 [ $delta ] + Parameter #2 [ $create ] + Parameter #3 [ $expire ] + Parameter #4 [ $initial ] + } + } + + Method [ public method decrement ] { + + - Parameters [5] { + Parameter #0 [ $id ] + Parameter #1 [ $delta ] + Parameter #2 [ $create ] + Parameter #3 [ $expire ] + Parameter #4 [ $initial ] + } + } + + Method [ public method getResultCode ] { + + - Parameters [0] { + } + } + + Method [ public method getResultMessage ] { + + - Parameters [0] { + } + } + + Method [ public method setOption ] { + + - Parameters [2] { + Parameter #0 [ $option ] + Parameter #1 [ $value ] + } + } + + Method [ public method getOption ] { + + - Parameters [1] { + Parameter #0 [ $option ] + } + } + + Method [ public method getVersion ] { + + - Parameters [1] { + Parameter #0 [ $resource ] + } + } + + Method [ public method getClientVersion ] { + + - Parameters [0] { + } + } + + Method [ public method getNumReplicas ] { + + - Parameters [0] { + } + } + + Method [ public method getServers ] { + + - Parameters [0] { + } + } + + Method [ public method observe ] { + + - Parameters [3] { + Parameter #0 [ $id ] + Parameter #1 [ $cas ] + Parameter #2 [ &$details ] + } + } + + Method [ public method observeMulti ] { + + - Parameters [2] { + Parameter #0 [ array $ids ] + Parameter #1 [ &$details ] + } + } + + Method [ public method keyDurability ] { + + - Parameters [3] { + Parameter #0 [ $id ] + Parameter #1 [ $cas ] + Parameter #2 [ array $details ] + } + } + + Method [ public method keyDurabilityMulti ] { + + - Parameters [2] { + Parameter #0 [ array $ids ] + Parameter #1 [ array $details ] + } + } + + Method [ public method getDesignDoc ] { + + - Parameters [1] { + Parameter #0 [ $name ] + } + } + + Method [ public method setDesignDoc ] { + + - Parameters [2] { + Parameter #0 [ $name ] + Parameter #1 [ $document ] + } + } + + Method [ public method deleteDesignDoc ] { + + - Parameters [1] { + Parameter #0 [ $name ] + } + } + + Method [ public method listDesignDocs ] { + + - Parameters [0] { + } + } + + Method [ public method getTimeout ] { + + - Parameters [0] { + } + } + + Method [ public method setTimeout ] { + + - Parameters [1] { + Parameter #0 [ $timeout ] + } + } + } + } + + Class [ class CouchbaseClusterManager ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [7] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $hosts ] + Parameter #1 [ $user ] + Parameter #2 [ $password ] + } + } + + Method [ public method createBucket ] { + + - Parameters [2] { + Parameter #0 [ $name ] + Parameter #1 [ $attributes ] + } + } + + Method [ public method modifyBucket ] { + + - Parameters [2] { + Parameter #0 [ $name ] + Parameter #1 [ $attributes ] + } + } + + Method [ public method deleteBucket ] { + + - Parameters [1] { + Parameter #0 [ $name ] + } + } + + Method [ public method flushBucket ] { + + - Parameters [1] { + Parameter #0 [ $name ] + } + } + + Method [ public method getBucketInfo ] { + + - Parameters [1] { + Parameter #0 [ $name ] + } + } + + Method [ public method getInfo ] { + } + } + } + + Class [ class CouchbaseException extends Exception ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [9] { + Method [ method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class CouchbaseIllegalKeyException extends CouchbaseException ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [9] { + Method [ method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class CouchbaseNoSuchKeyException extends CouchbaseException ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [9] { + Method [ method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class CouchbaseAuthenticationException extends CouchbaseException ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [9] { + Method [ method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class CouchbaseLibcouchbaseException extends CouchbaseException ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [9] { + Method [ method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class CouchbaseServerException extends CouchbaseException ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [9] { + Method [ method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class CouchbaseKeyMutatedException extends CouchbaseException ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [9] { + Method [ method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class CouchbaseTimeoutException extends CouchbaseException ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [9] { + Method [ method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class CouchbaseNotEnoughNodesException extends CouchbaseException ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [9] { + Method [ method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class CouchbaseIllegalOptionException extends CouchbaseException ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [9] { + Method [ method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class CouchbaseIllegalValueException extends CouchbaseException ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [9] { + Method [ method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class CouchbaseIllegalArgumentsException extends CouchbaseException ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [9] { + Method [ method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class CouchbaseNotSupportedException extends CouchbaseException ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [9] { + Method [ method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + } +} + diff --git a/couchbase-zts.patch b/couchbase-zts.patch deleted file mode 100644 index 8dc88a7..0000000 --- a/couchbase-zts.patch +++ /dev/null @@ -1,50 +0,0 @@ -From f4b319fe77e307d3d4e2a88a0c85a9c1c97fe458 Mon Sep 17 00:00:00 2001 -From: Remi Collet -Date: Sat, 5 Oct 2013 08:09:29 +0200 -Subject: [PATCH] Change too generic function name - -This breaks ZTS build on Linux - -/dev/shm/BUILD/php-pecl-couchbase-1.2.1/ZTS/replica.c:32:22: error: conflicting types for 'clone' - static struct entry *clone(lcb_error_t error, const lcb_get_resp_t *r) { - ^ -In file included from /usr/include/sched.h:42:0, - from /usr/include/pthread.h:23, - from /usr/include/php-zts/php/Zend/../TSRM/TSRM.h:55, - from /usr/include/php-zts/php/Zend/zend_alloc.h:27, - from /usr/include/php-zts/php/Zend/zend.h:252, - from /usr/include/php-zts/php/main/php.h:34, - from /dev/shm/BUILD/php-pecl-couchbase-1.2.1/ZTS/internal.h:49, - from /dev/shm/BUILD/php-pecl-couchbase-1.2.1/ZTS/replica.c:18: -/usr/include/bits/sched.h:82:12: note: previous declaration of 'clone' was here - extern int clone (int (*__fn) (void *__arg), void *__child_stack, - ^ ---- - replica.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/replica.c b/replica.c -index b13bcd6..f5a25f0 100644 ---- a/replica.c -+++ b/replica.c -@@ -29,7 +29,7 @@ struct response { - struct entry *data; - }; - --static struct entry *clone(lcb_error_t error, const lcb_get_resp_t *r) { -+static struct entry *lcb_clone(lcb_error_t error, const lcb_get_resp_t *r) { - struct entry *ret = calloc(1, sizeof(struct entry)); - if (ret != NULL) { - ret->error = error; -@@ -55,7 +55,7 @@ static void get_replica_callback(lcb_t instance, - const lcb_get_resp_t *resp) - { - struct response *r = (void *)cookie; -- struct entry *c = clone(error, resp); -+ struct entry *c = lcb_clone(error, resp); - if (c) { - r->entries++; - c->next = r->data; --- -1.8.4 - diff --git a/php-pecl-couchbase.spec b/php-pecl-couchbase.spec index f2efb88..715479b 100644 --- a/php-pecl-couchbase.spec +++ b/php-pecl-couchbase.spec @@ -25,16 +25,13 @@ Summary: Couchbase Server PHP extension Name: %{?scl_prefix}php-pecl-couchbase -Version: 1.2.1 -Release: 4%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Version: 1.2.2 +Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} License: PHP Group: Development/Languages URL: pecl.php.net/package/couchbase Source0: http://pecl.php.net/get/%{pecl_name}-%{version}%{?svnrev:-dev}.tgz -# https://github.com/couchbase/php-ext-couchbase/pull/9 -Patch0: %{pecl_name}-zts.patch - BuildRequires: %{?scl_prefix}php-devel >= 5.3.0 BuildRequires: %{?scl_prefix}php-pecl-igbinary-devel BuildRequires: %{?scl_prefix}php-pear @@ -85,8 +82,6 @@ in a Couchbase Server. mv %{pecl_name}-%{version} NTS cd NTS -%patch0 -p1 -b .ztsfix - # Fix version sed -e '/PHP_COUCHBASE_VERSION/s/1.2.0/%{version}/' -i php_couchbase.h @@ -121,9 +116,6 @@ make %{?_smp_mflags} %install -# for short-circuit -rm -f */modules/{json,igbinary}.so - # Install the NTS stuff make install -C NTS INSTALL_ROOT=%{buildroot} install -D -m 644 NTS/example/%{pecl_name}.ini %{buildroot}%{php_inidir}/%{ini_name} @@ -146,22 +138,19 @@ done %check : minimal NTS load test -ln -sf %{php_extdir}/{json,igbinary}.so NTS/modules/ %{__php} -n \ - -d extension_dir=NTS/modules \ -d extension=igbinary.so \ -d extension=json.so \ - -d extension=%{pecl_name}.so \ + -d extension=NTS/modules/%{pecl_name}.so \ -m | grep %{pecl_name} %if %{with_zts} : minimal ZTS load test ln -sf %{php_ztsextdir}/{json,igbinary}.so ZTS/modules/ %{__ztsphp} -n \ - -d extension_dir=ZTS/modules \ -d extension=igbinary.so \ -d extension=json.so \ - -d extension=%{pecl_name}.so \ + -d extension=ZTS/modules/%{pecl_name}.so \ -m | grep %{pecl_name} %endif @@ -191,6 +180,9 @@ fi %changelog +* Mon May 12 2014 Remi Collet - 1.2.2-1 +- Update to 1.2.2 + * Wed Apr 9 2014 Remi Collet - 1.2.1-4 - add numerical prefix to extension configuration file -- cgit