机器是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