php没有使用编译的curl

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

clipboard.png

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

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

clipboard.png

自带curl 是这个

clipboard.png

因为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

阅读 2.7k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题