首页
下载
文档
问答社区
视频
捐赠
源代码
AI 助理
赞助商
CRMEB
Apipost
腾讯云
微擎
禅道
51Talk
商业产品
Swoole AI 智能文档翻译器
Swoole-Compiler PHP 代码加密器
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); ```
发布于1年前 · 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
回复
微信公众号
热门内容
暂无回复的问答
- 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一直是同一个。没用使用到多进程啊。