./configure检测swoole时报以下错误,不用考虑,只能更换高级版本

swoole_coroutine.c:261:148: error: too many arguments to function call, expected 4, have 5

swoole-2.2.0/swoole_client.c:849:87: warning: format specifies type ‘char *’ but the argument has type ‘size_t’ (aka ‘unsigned long’) [-Wformat]
swoole_php_fatal_error(E_WARNING, “Unable to register shutdown function [%s]”,ZSTR_LEN(Z_STR(shutdown_function_entry.arguments[0])));
%lu
./php_swoole.h:110:106: note: expanded from macro ‘swoole_php_fatal_error’
#define swoole_php_fatal_error(level, fmt_str, …) php_error_docref(NULL TSRMLS_CC, level, fmt_str, ##VA_ARGS)

swoole-2.2.0/swoole_client.c:1407:90: warning: format specifies type ‘int’ but the argument has type ‘zend_size_t’ (aka ‘unsigned long’) [-Wformat]
swoole_php_sys_error(E_WARNING, “failed to send(%d) %d bytes.”, cli->socket->fd, data_len);
~~ ^~~~~~~~
%lu
./php_swoole.h:111:150: note: expanded from macro ‘swoole_php_sys_error’
#define swoole_php_sys_error(level, fmt_str, …) if (SWOOLE_G(display_errors)) php_error_docref(NULL TSRMLS_CC, level, fmt_str" Error: %s[%d].", ##VA_ARGS, strerror(errno), errno)

                                              %lu

./php_swoole.h:111:150: note: expanded from macro ‘swoole_php_sys_error’
#define swoole_php_sys_error(level, fmt_str, …) if (SWOOLE_G(display_errors)) php_error_docref(NULL TSRMLS_CC, level, fmt_str" Error: %s[%d].", ##VA_ARGS, strerror(errno), errno)
^~~~~~~~~~~

       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                           ^~~~~~

/php/include/php/Zend/zend_execute.h:219:1: note: ‘zend_vm_stack_push_call_frame’ declared here
static zend_always_inline zend_execute_data *zend_vm_stack_push_call_frame(uint32_t call_info, zend_function *func, uint32_t num_args, void *object_or_called_scope)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值