我在Mac上安装了本地PHP,开箱即用的是使用cURL 7.54.0 w / SecureTransport for SSL。我需要切换它以使用使用OpenSSL for SSL的cURL版本。这是我到目前为止所做的:
brew install openssl
brew install curl --with-openssl
--with-curl=/usr/local/opt/curl
选项设置从源重新安装PHP。这个路径是OpenSSL的cURL,内置的是OpenSSL。根据我所研究的内容,这应该是解决方案,但是当我打开phpinfo()时,PHP 仍然使用旧卷曲7.54.0 w / SecureTransport。 配置命令安全显示在配置过程中'--with-curl=/usr/local/opt/curl'
已正确设置。
在 http 下,我确实看到libcurl
发生了一些有趣的事情:
Used Library Compiled Linked
libcurl 7.59.0 7.54.0
我不知道如何调整此处显示的Linked
项,或者这是否能解决问题。我完全难过,非常感谢任何帮助。