PHP7没有cURL SSL支持

时间:2018-09-04 10:09:08

标签: php curl centos php-7

多年来,我遵循标准程序在CentOS 64位下编译PHP,Apache,OpenSSL等。升级到PHP7后,我遇到了cURL问题。虽然可以正常编译,但PHP似乎无法识别cURL编译所针对的OpenSSL软件包。 结果,在phpinfo页面下,cURL既不显示SSL也不显示HTTP / 2支持。它还不显示OpenSSL版本。

我在PHP 5.6中没有任何这些问题(遵循相同的过程)。

PHP编译时间会弹出如下警告:

#warning "libcurl was compiled with SSL support, but configure could not 
determine which

我也注意到以下几点:

checking for cURL 7.10.5 or greater... 7.61.0
checking for openssl support in libcurl... no

在PHP编译期间,我还会收到以下警告:

/opt/packages/php-7.2.9/ext/curl/interface.c:74:5: warning: #warning "libcurl was compiled with SSL support, but configure could not determine which" "library was used; thus no SSL crypto locking callbacks will be set, which may " "cause random crashes on SSL requests" [-Wcpp]

我将不胜感激。如果您需要其他说明,请告诉我。

0 个答案:

没有答案