diff --git a/src/Composer/Command/DiagnoseCommand.php b/src/Composer/Command/DiagnoseCommand.php index b7739ff18..30f82be62 100644 --- a/src/Composer/Command/DiagnoseCommand.php +++ b/src/Composer/Command/DiagnoseCommand.php @@ -172,7 +172,7 @@ EOT $io->write(sprintf('PHP binary path: %s', PHP_BINARY)); } - $io->write(sprintf('OpenSSL version: %s', OPENSSL_VERSION_TEXT)); + $io->write('OpenSSL version: ' . (defined('OPENSSL_VERSION_TEXT') ? ''.OPENSSL_VERSION_TEXT.'' : 'missing')); return $this->exitCode; }