PHP7.3.0 memcache模块安装失败

问答中心分类: LinuxPHP7.3.0 memcache模块安装失败
东日集 asked 5 年 ago
   ^~~~~~~~~~~~~~~~~
/usr/local/php/include/php/Zend/zend_smart_string.h:67:32: note: expected ‘smart_string * {aka struct <anonymous> *}’ but argument is of type ‘smart_str * {aka struct <anonymous> *}’
 static zend_always_inline void smart_string_free_esmart_string *str, zend_bool persistent) {
                                ^~~~~~~~~~~~~~~~~~~~
/root/oneinstack/src/pecl-memcache-php7/memcache.c: In function ‘php_mmc_connect’:
/root/oneinstack/src/pecl-memcache-php7/memcache.c:1946:24: error: lvalue required as increment operand
   GC_REFCOUNT(list_res)++;
                        ^~
/root/oneinstack/src/pecl-memcache-php7/memcache.c:1965:24: error: lvalue required as increment operand
   GC_REFCOUNT(list_res)++;
                        ^~
/root/oneinstack/src/pecl-memcache-php7/memcache.c: In function ‘zif_memcache_add_server’:
/root/oneinstack/src/pecl-memcache-php7/memcache.c:2057:24: error: lvalue required as increment operand
   GC_REFCOUNT(list_res)++;
                        ^~
/root/oneinstack/src/pecl-memcache-php7/memcache.c: In function ‘mmc_find_persistent’:
/root/oneinstack/src/pecl-memcache-php7/memcache.c:2203:19: error: lvalue required as left operand of assignment
   GC_REFCOUNT(le) = 1;
                   ^
/root/oneinstack/src/pecl-memcache-php7/memcache.c:2220:19: error: lvalue required as left operand of assignment
   GC_REFCOUNT(le) = 1;
                   ^
Makefile:193: recipe for target 'memcache.lo' failed
make: *** [memcache.lo] Error 1
PHP memcache module install failed, Please contact the author! 

2 Answers
东日集 answered 5 年 ago

debian9系统

oneinstack answered 5 年 ago
已知问题,官方暂时没有推出适合php7.3 的pecl_memcache扩展源码