diff --git a/src/Composer/Command/DiagnoseCommand.php b/src/Composer/Command/DiagnoseCommand.php
index 932da8006..564cd843a 100644
--- a/src/Composer/Command/DiagnoseCommand.php
+++ b/src/Composer/Command/DiagnoseCommand.php
@@ -173,6 +173,8 @@ EOT
}
$io->write('OpenSSL version: ' . (defined('OPENSSL_VERSION_TEXT') ? ''.OPENSSL_VERSION_TEXT.'' : 'missing'));
+ $io->write('cURL version: ' . $this->getCurlVersion());
+ $io->write('zip extension: ' . (extension_loaded('zip') ? 'OK' : 'not loaded'));
return $this->exitCode;
}
@@ -444,6 +446,19 @@ EOT
return true;
}
+ private function getCurlVersion()
+ {
+ if (function_exists('curl_version')) {
+ $version = curl_version();
+
+ return ''.$version['version'].' '.
+ 'libz '.(isset($version['libz_version']) ? $version['libz_version'] : 'missing').' '.
+ 'ssl '.(isset($version['ssl_version']) ? $version['ssl_version'] : 'missing').'';
+ }
+
+ return 'missing, using php streams fallback';
+ }
+
/**
* @param bool|string|\Exception $result
*/