-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
编译swoole所用libcurl头文件和PHP 8.3所用版本不同导致Segmentation fault #5348
Comments
着急用呢,可以尝试免安装的swoole-cli 或者 php-cli 解决对 运行环境中 相关库的依赖 |
fixed by #5351 |
如果指定pkgconfig路径,问题解决 是否能有合理方案规避用户未指定或者说使用了和PHP不一致的头文件时能及时提醒出来,避免不兼容时在使用中才发现问题
谢谢 |
不好检测,建议使用 swoole-cli 。如果自行编译,是要考虑到不同路径的冲突问题,尽量使用 apt/yum 来安装基础库。 |
能否文档以及configure对应配置说明中提示下libcurl版本的要求? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please answer these questions before submitting your issue.
系统环境
重现问题
- 通过PKG_CONFIG_PATH=/path/to/curl-8.8.0/lib/pkgconfig
- 或设置CURL_LIBS, CURL_CFLAGS
推测
swoole-curl
,默认使用系统的路径中的libcurl头文件, 且指定PKG_CONFIG_PATH并不认(config.m4未作处理),使用时swoole会在swoole_native_curl_minit
中替换curl_ce
的handler,从而导致php_curl_handlers
和PHP内的不一致What did you expect to see?
执行curl相关操作不会出现Segmentation fault
What did you see instead?
php --ri swoole
)?通过指定 CXXFLAGS="-I/path/to/curl-8.8.0/include" 问题消失
是否可以修改config.m4,在未指定CURL_CFLAGS ,从php-config读取是否有 CURL_CFLAGS或者PKGCONFIG之类的配置?
或者有其他方案
The text was updated successfully, but these errors were encountered: