瀏覽代碼

add php version and binary to the dignose command

Renan de Lima 7 年之前
父節點
當前提交
f1fb969a3a
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/Composer/Command/DiagnoseCommand.php

+ 8 - 0
src/Composer/Command/DiagnoseCommand.php

@@ -150,6 +150,14 @@ EOT
             $this->outputResult($this->checkVersion($config));
         }
 
+        $io->write(sprintf('Composer version: <comment>%s</comment>', Composer::VERSION));
+
+        $io->write(sprintf('PHP version: <comment>%s</comment>', PHP_VERSION));
+
+        if (defined('PHP_BINARY')) {
+            $io->write(sprintf('PHP binary path: <comment>%s</comment>', PHP_BINARY));
+        }
+
         return $this->exitCode;
     }