开发者

PHP use different curl version than is installed in system

开发者 https://www.devze.com 2023-01-18 11:34 出处:网络
I am using CentOS distribution and I need to install newer version then 7.15.5. I couldn\'t upgrade to开发者_Go百科 nower using yum, so I download sources, compile and install without problem.

I am using CentOS distribution and I need to install newer version then 7.15.5. I couldn't upgrade to开发者_Go百科 nower using yum, so I download sources, compile and install without problem.

[root ~]# curl -V
curl 7.21.1 (i686-pc-linux-gnu) libcurl/7.21.1 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Protocols: dict file ftp ftps http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp 
Features: IDN Largefile NTLM SSL libz 

However, when I display phpinfo() I see:

cURL support    enabled
cURL Information    libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5

I restarted apache, tried even replacing old curl in /usr/bin/curl with symlink to newer version in /usr/local/bin/curl. Still no clue how to upgrade curl used by PHP.


When you say you downloaded sources, do you mean you built php sources or curl from source? You need to compile php with with-curl=/usr/local/bin/curl option set to the version of libcurl you want to integrate.

0

精彩评论

暂无评论...
验证码 换一张
取 消