From f1fb969a3ad0638d8be21d477c8fca6e4ac8e46f Mon Sep 17 00:00:00 2001 From: Renan de Lima Date: Sun, 15 Oct 2017 12:48:34 +0200 Subject: [PATCH] add php version and binary to the dignose command --- src/Composer/Command/DiagnoseCommand.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Composer/Command/DiagnoseCommand.php b/src/Composer/Command/DiagnoseCommand.php index 32b9d7140..d8977493d 100644 --- a/src/Composer/Command/DiagnoseCommand.php +++ b/src/Composer/Command/DiagnoseCommand.php @@ -150,6 +150,14 @@ EOT $this->outputResult($this->checkVersion($config)); } + $io->write(sprintf('Composer version: %s', Composer::VERSION)); + + $io->write(sprintf('PHP version: %s', PHP_VERSION)); + + if (defined('PHP_BINARY')) { + $io->write(sprintf('PHP binary path: %s', PHP_BINARY)); + } + return $this->exitCode; }