Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DiagnoseCommand.php

function DiagnoseCommand::getCurlVersion

1 call to DiagnoseCommand::getCurlVersion()
DiagnoseCommand::execute in vendor/composer/composer/src/Composer/Command/DiagnoseCommand.php
Executes the current command.

File

vendor/composer/composer/src/Composer/Command/DiagnoseCommand.php, line 608

Class

DiagnoseCommand
@author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Composer\Command

Code

private function getCurlVersion() : string {
    if (extension_loaded('curl')) {
        if (!HttpDownloader::isCurlEnabled()) {
            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> ' . 'ssl <comment>' . ($version['ssl_version'] ?? 'missing') . '</comment>';
    }
    return '<error>missing, using php streams fallback, which reduces performance</error>';
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal