Couchbase php sdk 2 一般错误

Couchbase php sdk 2 一般错误

我正在尝试使用 2.0.7 cb sdk 在 php v5.5 中测试 Couchbase 连接。当我运行下面的代码时,我得到了以下输出。我尝试连接的服务器是远程的,并且我没有在这台机器上安装 cb 服务器应用程序。我确实有 CB 的 C 库。

[warn] event_pending: event has no event_base set.
[warn] event_add: event has no event_base set.
[warn] event_pending: event has no event_base set.
[warn] event_add: event has no event_base set.
[warn] event_pending: event has no event_base set.
[warn] event_pending: event has no event_base set.
[warn] event_pending: event has no event_base set.
[warn] event_pending: event has no event_base set.
[warn] event_pending: event has no event_base set.
[warn] event_pending: event has no event_base set.
[warn] event_pending: event has no event_base set.
[warn] event_pending: event has no event_base set.
[warn] event_pending: event has no event_base set.
[warn] event_pending: event has no event_base set.
[warn] event_pending: event has no event_base set.
[warn] event_pending: event has no event_base set.
Generic error

代码:

<?php
$cb = new CouchbaseCluster('couchbase://ip.add.re.ss', 'user', 'pass');
try{

    $b = $cb->openBucket('default');
}
catch( CouchbaseException $e){
    print $e->getMessage();
}

编辑:这是我为 libevent 安装的内容。

# yum list | grep libevent
libcouchbase2-libevent.x86_64              2.5.0-1.el6                  @couchbase
libevent.x86_64                            1.4.13-4.el6                 @base
libevent-last.x86_64                       2.0.21-4.el6.remi            installed
libevent.i686                              1.4.13-4.el6                 base
libevent-devel.i686                        1.4.13-4.el6                 base
libevent-devel.x86_64                      1.4.13-4.el6                 base
libevent-doc.noarch                        1.4.13-4.el6                 base
libevent-headers.noarch                    1.4.13-4.el6                 base 

编辑2:我在另一台几乎相同的机器上安装了 couchbase C sdk 和 PHP,并且它可以运行。

编辑3:我尝试重新安装软件包但没有任何变化。

答案1

我必须将其删除,libevent-last因为它与 Couchbase 版本冲突。

更多详细信息请参阅 Couchbase 论坛。 https://forums.couchbase.com/t/lib-event-error-with-c-sdk-php/4063/2

相关内容