title: PHP use different curl version than is installed in system
body: <p>I am using CentOS distribution and I need to install newer version then 7.15.5. I couldn't upgrade to nower using yum, so I download sources, compile and install without problem. </p>
  
  <pre><code>[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 
  </code></pre>
  
  <p>However, when I display phpinfo() I see:</p>
  
  <pre><code>cURL support    enabled
  cURL Information    libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
  </code></pre>
  
  <p>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.</p>