Navigation Menu

Skip to content

Commit

Permalink
Warn if PHP 5.5 is used as it's EOL
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Jul 11, 2016
1 parent 74b275c commit cc76a6f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/acme
Expand Up @@ -80,6 +80,11 @@ if (!in_array(PHP_SAPI, ["cli", "phpdbg"], true)) {
exit(1);
}

if (PHP_VERSION_ID < 50600) {
$climate->yellow("You're using an older version of PHP which is no longer supported and will not even receive security fixes anymore. Have a look at http://php.net/supported-versions.php and upgrade now!");
$climate->br(2);
}

if (count($argv) === 1 || in_array($argv[1], ["-h", "help", "--help"], true)) {
$climate->out($logo . $help);
exit(0);
Expand Down

0 comments on commit cc76a6f

Please sign in to comment.