Answer the question
In order to leave comments, you need to log in
How to update curl library for php?
Good day to all!
It is necessary to update the curl library from version 7.29 to at least version 7.34, I can’t figure out how to do this, where can I get it?
Tried through pecl, there is no curl at all, tried yum install php-pecl-curl
, also to no avail. I also tried to update from the sources located at the office. site , as a result, the utility itself was updated to the latest version (there are no problems with it) and three libraries libcurl.a, libcurl.la and libcurl.so.4.5.0 were compiled. I tried to replace the libcurl.so.4.5.0 library with the current one in the php libraries directory, but php when trying to check for the version of curl in php with the command:
php -r "echo 'PHP cUrl version:\ '.curl_version()['version'];"
PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'curl.so' in Unknown on line 0
PHP Fatal error: Uncaught Error: Call to undefined function curl_version() in Command line code:1
Stack trace:
#0 {main}
thrown in Command line code on line 1
Fatal error: Uncaught Error: Call to undefined function curl_version() in Command line code:1
Stack trace:
#0 {main}
thrown in Command line code on line 1
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question