curl_version

Supported Versions: PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8
Gets cURL version information
<?php curl_version(): array|false
<?php                 return '<error>disabled via disable_functions, using php streams fallback, which reduces performance</error>';

            }



            $version = curl_version();



            return '<comment>'.$version['version'].'</comment> '.

                'libz <comment>'.(!empty($version['libz_version']) ? $version['libz_version'] : 'missing').'</comment> '.
<?php         $this->authHelper = new AuthHelper($io, $config);

        $this->proxyManager = ProxyManager::getInstance();



        $version = curl_version();

        $features = $version['features'];

        $this->supportsSecureProxy = defined('CURL_VERSION_HTTPS_PROXY') && ($features & CURL_VERSION_HTTPS_PROXY);

    }
<?php         $options['http']['header'] = array_diff($options['http']['header'], array('Connection: close'));

        $options['http']['header'][] = 'Connection: keep-alive';



        $version = curl_version();

        $features = $version['features'];

        if (0 === strpos($url, 'https://') && \defined('CURL_VERSION_HTTP2') && \defined('CURL_HTTP_VERSION_2_0') && (CURL_VERSION_HTTP2 & $features)) {

            curl_setopt($curlHandle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0);
<?php         }



        if ($forCurl) {

            $curl = curl_version();

            $httpVersion = 'cURL '.$curl['version'];

        } else {

            $httpVersion = 'streams';