Score:0

Why is my PHP CLI Curl version different from curl and libcurl even if I try to force it with --with-curl flag during compilation?

jp flag

I have compiled PHP after compiling Curl 7.73 .

Curl -v shows me it's 7.73, and if I go to my web server and check phpinfo() output it's also 7.73 .

However, the compiled php cli is showing me that it's running Curl 7.68 !

To confirm this, I checked the output of php --ini and also ran a script from cli to get the output of curl_version() .

In order to try to force php cli curl version to be 7.73 I recompiled it with the flag --with-curl=path/to/curl

However, no matter how many times or versions of php i recompile, it always defaults to Curl 7.68, ignoring Curl from my system or my flag .

How can I fix this and force PHP CLI to use the same curl as the rest of the system ?

Michael Hampton avatar
cz flag
Why do you have two different versions of curl on your system?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.