首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
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 ### 相关代码 ### 你期待的结果是什么?实际看到的错误信息又是什么?
发布于3年前 · 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
回复