1
0
Fork 0

Fix support for running diagnose without openssl

The diagnose command already warns when openssl is not available. But the command was failing later when displaying the Openssl version.
pull/9239/head
Christophe Coevoet 2020-09-22 18:49:53 +02:00 committed by GitHub
parent 44508319d1
commit bcd8a73e8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -172,7 +172,9 @@ EOT
$io->write(sprintf('PHP binary path: <comment>%s</comment>', PHP_BINARY));
}
$io->write(sprintf('OpenSSL version: <comment>%s</comment>', OPENSSL_VERSION_TEXT));
if (defined('OPENSSL_VERSION_TEXT') {
$io->write(sprintf('OpenSSL version: <comment>%s</comment>', OPENSSL_VERSION_TEXT));
}
return $this->exitCode;
}