首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
对接paypal 支付 调用sdk 提示 swoole_curl_setopt 10083不支持
### 问题描述 提示:swoole_curl_setopt(): option[10083] is not supported ### Swoole版本,PHP版本,以及操作系统版本信息 swoole Swoole => enabled Author => Swoole Team <team@swoole.com> Version => 4.8.12 Built => Jan 5 2023 16:03:38 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.7 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 $options = '{ "32": 6, "78": 10, "19913": true, "13": 60, "10018": "PayPal-PHP-SDK", "81": 2, "64": 1, "10083": "TLSv1:TLSv1.2" }'; $ch = curl_init($this->httpConfig->getUrl()); curl_setopt_array($ch, $options); ```
发布于3年前 · 19 次浏览 · 来自
提问
机械之咒#
### 问题描述 提示:swoole_curl_setopt(): option[10083] is not supported ### Swoole版本,PHP版本,以及操作系统版本信息 swoole Swoole => enabled Author => Swoole Team <team@swoole.com> Version => 4.8.12 Built => Jan 5 2023 16:03:38 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.7 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 $options = '{ "32": 6, "78": 10, "19913": true, "13": 60, "10018": "PayPal-PHP-SDK", "81": 2, "64": 1, "10083": "TLSv1:TLSv1.2" }'; $ch = curl_init($this->httpConfig->getUrl()); curl_setopt_array($ch, $options); ```
赞
0
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
登录
后参与评论
评论
2023-02-07
Rango
重新编译 swoole 增加 `--enable-swoole-curl` 编译参数,启用 `curl native`,默认是不启用,而是使用`Coroutine\Http\Client` 模拟实现,有一部分参数是不支持。
赞
0
回复