1
0
Fork 0

Output composer/php/os version info in debug mode

pull/5210/head
Jordi Boggiano 2016-04-18 22:09:07 +01:00
parent f04802ad68
commit 118d8fb52f
1 changed files with 8 additions and 0 deletions

View File

@ -117,6 +117,14 @@ class Application extends BaseApplication
}
if ($commandName !== 'global') {
$io->writeError(sprintf(
'Running %s (%s) with %s on %s',
Composer::VERSION,
Composer::RELEASE_DATE,
defined('HHVM_VERSION') ? 'HHVM '.HHVM_VERSION : 'PHP '.PHP_VERSION,
php_uname('s') . ' / ' . php_uname('r')
), true, IOInterface::DEBUG);
if (PHP_VERSION_ID < 50302) {
$io->writeError('<warning>Composer only officially supports PHP 5.3.2 and above, you will most likely encounter problems with your PHP '.PHP_VERSION.', upgrading is strongly recommended.</warning>');
}