php没有使用编译的curl
怪我咯
怪我咯 2017-04-11 09:49:55
[PHP讨论组]

机器是mac, php版本是php7.0.15
因为使用最极光推送突然出问题,如下

各种百度、Google,得到的问题好像是因为Mac 的SSL Version是SecureTransport,而不是openssl
参考资料:
https://yq.aliyun.com/article...
http://stackoverflow.com/ques...

因此,我就从新编译curl,而且执行curl -V的结果是使用openssl

自带curl 是这个

因为mac好像改不了/usr/bin的文件,用root用户都不行,备份不了所以就重新编译php,下面是编译参数,指定了curl 和 openssl的路径

./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysqli --with-iconv   --with-freetype-dir=/usr/local/Cellar/freetype/2.6_1 --with-jpeg-dir --with-png-dir=/usr/local/Cellar/libpng/1.6.28/bin --with-libxml-dir=/usr --enable-xml --disable-rpath   --enable-discard-path --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem   --enable-inline-optimization --with-curl=/usr/local/Cellar/curl/7.52.1/bin --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect   --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl=/usr/local/opt/openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-zlib --enable-pdo --with-pdo-mysql --enable-opcache 

编译成功后执行php -i | grep 'SSL Version' 还是没变化

SSL Version => SecureTransport

所以问题是不是我编译进去的curl 没有作用?
或者有其它方法将苹果的SSL Version 改成 openssl

怪我咯
怪我咯

走同样的路,发现不同的人生

全部回复(0)
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号