douwei8672 2016-02-02 10:59
浏览 87

PHP7 couchbase模块编译

i try to compile php-couchbase (https://github.com/couchbase/php-couchbase) with PHP7 but after phpize, ./configure on make receive this error:

In file included from /home/ubuntu/php-couchbase/bucket.c:1:0:
/home/ubuntu/php-couchbase/bucket.c: In function 'zim_Bucket_http_request':
/home/ubuntu/php-couchbase/couchbase.h:44:23: warning: initialization makes pointer from integer without a cast [enabled by default]
 #define PHP_THISOBJ() zend_object_store_get_object(getThis() TSRMLS_CC)
                       ^
/home/ubuntu/php-couchbase/bucket.c:1136:24: note: in expansion of macro 'PHP_THISOBJ'
  bucket_object *data = PHP_THISOBJ();
                        ^
/home/ubuntu/php-couchbase/bucket.c: In function 'zim_Bucket_durability':
/home/ubuntu/php-couchbase/couchbase.h:44:23: warning: initialization makes pointer from integer without a cast [enabled by default]
 #define PHP_THISOBJ() zend_object_store_get_object(getThis() TSRMLS_CC)
                       ^
/home/ubuntu/php-couchbase/bucket.c:1203:24: note: in expansion of macro 'PHP_THISOBJ'
  bucket_object *data = PHP_THISOBJ();
                        ^
/home/ubuntu/php-couchbase/bucket.c: In function 'zim_Bucket_setTranscoder':
/home/ubuntu/php-couchbase/couchbase.h:44:23: warning: initialization makes pointer from integer without a cast [enabled by default]
 #define PHP_THISOBJ() zend_object_store_get_object(getThis() TSRMLS_CC)
                       ^
/home/ubuntu/php-couchbase/bucket.c:1268:24: note: in expansion of macro 'PHP_THISOBJ'
  bucket_object *data = PHP_THISOBJ();
                        ^
/home/ubuntu/php-couchbase/bucket.c:1275:2: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [enabled by default]
  zval_ptr_dtor(&data->encoder);
  ^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
                 from /usr/include/php/20151012/main/php.h:36,
                 from /home/ubuntu/php-couchbase/couchbase.h:11,
                 from /home/ubuntu/php-couchbase/bucket.c:1:
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected 'struct zval *' but argument is of type 'struct zval **'
 ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
               ^
/home/ubuntu/php-couchbase/bucket.c:1279:2: warning: passing argument 1 of '_zval_ptr_dtor' from incompatible pointer type [enabled by default]
  zval_ptr_dtor(&data->decoder);
  ^
In file included from /usr/include/php/20151012/Zend/zend.h:39:0,
                 from /usr/include/php/20151012/main/php.h:36,
                 from /home/ubuntu/php-couchbase/couchbase.h:11,
                 from /home/ubuntu/php-couchbase/bucket.c:1:
/usr/include/php/20151012/Zend/zend_variables.h:112:15: note: expected 'struct zval *' but argument is of type 'struct zval **'
 ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
               ^
In file included from /home/ubuntu/php-couchbase/bucket.c:1:0:
/home/ubuntu/php-couchbase/bucket.c: In function 'zim_Bucket_setOption':
/home/ubuntu/php-couchbase/couchbase.h:44:23: warning: initialization makes pointer from integer without a cast [enabled by default]
 #define PHP_THISOBJ() zend_object_store_get_object(getThis() TSRMLS_CC)
                       ^
/home/ubuntu/php-couchbase/bucket.c:1288:24: note: in expansion of macro 'PHP_THISOBJ'
  bucket_object *data = PHP_THISOBJ();
                        ^
/home/ubuntu/php-couchbase/bucket.c: In function 'zim_Bucket_getOption':
/home/ubuntu/php-couchbase/couchbase.h:44:23: warning: initialization makes pointer from integer without a cast [enabled by default]
 #define PHP_THISOBJ() zend_object_store_get_object(getThis() TSRMLS_CC)
                       ^
/home/ubuntu/php-couchbase/bucket.c:1304:24: note: in expansion of macro 'PHP_THISOBJ'
  bucket_object *data = PHP_THISOBJ();
                        ^
/home/ubuntu/php-couchbase/bucket.c: In function 'couchbase_init_bucket':
/home/ubuntu/php-couchbase/bucket.c:1345:19: warning: assignment from incompatible pointer type [enabled by default]
  ce.create_object = bucket_create_handler;
                   ^
make: *** [bucket.lo] Error 1

Couchbase not help us, and PHP7 it's important for performance improvement. We try with HHVM but we can't compile couchbase module.

Thanks, Jacopo

  • 写回答

2条回答 默认 最新

  • dongqinta4174 2016-02-02 12:49
    关注

    Unfortunately, the Couchbase PHP SDK does not currently support PHP 7, there are plans to add support to the SDK as per https://issues.couchbase.com/browse/PCBC-360, however there is not a scheduled release date for adding this support yet.

    评论

报告相同问题?

悬赏问题

  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮