php安装ext-swoole,在swoole4.4.7版本下,如何安装ext-async扩展?

环境声明:

swoole

Swoole => enabled

Author => Swoole Team

Version => 4.4.7-alpha

PHP Version => 7.3.10

然后我按照官方文档上的说明安装ext-async扩展,但是他总是说我函数错误。

操作如下:

git clone https://github.com/swoole/ext-async.git

cd ext-async

./configure --with-php-config=/home/phps/php/bin/php-config

make

然后就出错了

错误如下:

/tmp/ext-async/swoole_http_client.cc: In function ‘void zim_swoole_http_client_push(zend_execute_data*, zval*)’:

/tmp/ext-async/swoole_http_client.cc:2243:77: error: ‘swWebSocket_set_flags’ was not declared in this scope

uint8_t flags = swWebSocket_set_flags(fin, http->websocket_mask, 0, 0, 0);

^

/tmp/ext-async/swoole_http_client.cc:2244:81: error: too few arguments to function ‘int php_swoole_websocket_frame_pack(swString*, zval*, zend_bool, zend_bool, zend_bool)’

if (php_swoole_websocket_frame_pack(http_client_buffer, zdata, opcode, flags) < 0)

^

In file included from /tmp/ext-async/php_swoole_async.h:26:0,

from /tmp/ext-async/swoole_http_client.cc:18:

/home/phps/php/include/php/ext/swoole/php_swoole.h:373:5: note: declared here

int php_swoole_websocket_frame_pack(swString *buffer, zval *zdata, zend_bool opcode, zend_bool fin, zend_bool mask);

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值