I updated centos7 curl and now the version is 7.65, then I rebuilt php7 and set --with-curl=/usr/bin/curl
. When I finished curl_version()
still shows 7.20. Why is that?
I use guzzle to request a web which need http_version 2.0, so I have to upgrade php curl. Hope someone helps me, thanks a lot!
You have to update libcurl and use the installation path as compile option --with-curl=/path/to/libcurl
To do so follow the next steps:
As described here:
curl-config --cflags
curl-config --version
to determine the libcurl version--includedir
option--with-curl=/path/to/libcurl