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\CommandCode
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>';
}