首页
下载
文档
问答社区
视频
捐赠
源代码
AI 助理
赞助商
CRMEB
Apipost
腾讯云
微擎
禅道
51Talk
商业产品
Swoole AI 智能文档翻译器
Swoole-Compiler PHP 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
使用腾讯云SDK时遇到curl问题
### 问题描述 使用腾讯云SDK时遇到curl问题 Fatal error: Uncaught TypeError: curl_multi_add_handle(): Argument #2 ($handle) must be of type CurlHandle, Swoole\Curl\Handler given in /www/wwwroot/wuwen_new/Vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php:194 ### Swoole版本,PHP版本,以及操作系统版本信息 swoole Swoole => enabled Author => Swoole Team <team@swoole.com> Version => 4.8.5 Built => Sep 1 2022 10:11:58 coroutine => enabled with boost asm context epoll => enabled eventfd => enabled signalfd => enabled cpu_affinity => enabled spinlock => enabled rwlock => enabled sockets => enabled openssl => OpenSSL 1.0.2u 20 Dec 2019 pcre => enabled zlib => 1.2.11 mutex_timedlock => enabled pthread_barrier => enabled futex => enabled async_redis => enabled Directive => Local Value => Master Value swoole.enable_coroutine => On => On swoole.enable_library => On => On swoole.enable_preemptive_scheduler => Off => Off swoole.display_errors => On => On swoole.use_shortname => On => On swoole.unixsock_buffer_size => 8388608 => 8388608 PHP 8.1.9 (cli) (built: Sep 1 2022 10:24:13) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.9, Copyright (c) Zend Technologies ### 相关代码 ### 你期待的结果是什么?实际看到的错误信息又是什么?
发布于2年前 · 20 次浏览 · 来自
提问
源少
### 问题描述 使用腾讯云SDK时遇到curl问题 Fatal error: Uncaught TypeError: curl_multi_add_handle(): Argument #2 ($handle) must be of type CurlHandle, Swoole\Curl\Handler given in /www/wwwroot/wuwen_new/Vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php:194 ### Swoole版本,PHP版本,以及操作系统版本信息 swoole Swoole => enabled Author => Swoole Team <team@swoole.com> Version => 4.8.5 Built => Sep 1 2022 10:11:58 coroutine => enabled with boost asm context epoll => enabled eventfd => enabled signalfd => enabled cpu_affinity => enabled spinlock => enabled rwlock => enabled sockets => enabled openssl => OpenSSL 1.0.2u 20 Dec 2019 pcre => enabled zlib => 1.2.11 mutex_timedlock => enabled pthread_barrier => enabled futex => enabled async_redis => enabled Directive => Local Value => Master Value swoole.enable_coroutine => On => On swoole.enable_library => On => On swoole.enable_preemptive_scheduler => Off => Off swoole.display_errors => On => On swoole.use_shortname => On => On swoole.unixsock_buffer_size => 8388608 => 8388608 PHP 8.1.9 (cli) (built: Sep 1 2022 10:24:13) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.9, Copyright (c) Zend Technologies ### 相关代码 ### 你期待的结果是什么?实际看到的错误信息又是什么?
赞
0
分享
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
评论
2022-11-10
Rango
升级到 `4.8.12` ,另外使用 `--enable-swoole-curl` 开启`curl native`
赞
0
回复
微信公众号
热门内容
暂无回复的问答
- CodeGalaxy K3s 轻量集群节点之间如何实现负载均衡
- 关于openssl CURL WARNING swSSL_connect: SSL_connect(fd=69) failed. Error: error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small[1|394]
- 多个模型如何进行事务异常回退?
- websocket开启wss报错
- 协程tcp服务器如何使用多进程?recv()方法接收信息,打印出来的pid一直是同一个。没用使用到多进程啊。