From cc76a6f52cafee6b54be44911bfe18cf22b99a80 Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Mon, 11 Jul 2016 09:19:18 +0200 Subject: [PATCH] Warn if PHP 5.5 is used as it's EOL --- bin/acme | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/acme b/bin/acme index 090b22f..1757f2f 100755 --- a/bin/acme +++ b/bin/acme @@ -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);