Browse Source

Output composer/php/os version info in debug mode

Jordi Boggiano 9 years ago
parent
commit
118d8fb52f
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/Composer/Console/Application.php

+ 8 - 0
src/Composer/Console/Application.php

@@ -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>');
             }