Curl version on command line is different to PHP

9,125

libcurl is not curl. To update libcurl, use your OS's package management utilities.

Share:
9,125

Related videos on Youtube

Laurence
Author by

Laurence

Full stack web developer. Mainly develop Laravel web applications. Also have experience in Vue, Electron, Node, PHP, jQuery, mySQL, AB Testing. Generally follow TDD techniques when possible.

Updated on September 18, 2022

Comments

  • Laurence
    Laurence over 1 year

    I've got PHP version 5.5.21-1+deb.sury.org~precise+2 running with Apache2 under Ubuntu 12.04

    When I run phpinfo() it shows the curl version as 7.22.0

    When I run curl --version via the command line - it shows the version as 7.34.0

    How do I get PHP to use the newer version? I need a curl version >=7.24.0 for my needs

    Edit: ok - I've half solved the problem - this is my curl --version output:

    curl 7.39.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
    

    So I have curl 7.39 - but libcurl/7.22

    How do I update libcurl?