From 21925f48c3919392c338bc3f8da71696b51d6e33 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Wed, 6 Jan 2021 13:36:35 +0100 Subject: [PATCH] set minimum required php-version to 7.1 and recommended php-version to 7.4 Signed-off-by: Michael Kaufmann --- install/lib/class.FroxlorInstall.php | 4 ++-- lib/init.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/install/lib/class.FroxlorInstall.php b/install/lib/class.FroxlorInstall.php index 0bb6e0a3..aa9977e8 100644 --- a/install/lib/class.FroxlorInstall.php +++ b/install/lib/class.FroxlorInstall.php @@ -1036,11 +1036,11 @@ class FroxlorInstall // check for correct php version $content .= $this->_status_message('begin', $this->_lng['requirements']['phpversion']); - if (version_compare("7.0.0", PHP_VERSION, ">=")) { + if (version_compare("7.1.0", PHP_VERSION, ">=")) { $content .= $this->_status_message('red', $this->_lng['requirements']['notfound'] . ' (' . PHP_VERSION . ')'); $_die = true; } else { - if (version_compare("7.1.0", PHP_VERSION, ">=")) { + if (version_compare("7.4.0", PHP_VERSION, ">=")) { $content .= $this->_status_message('orange', $this->_lng['requirements']['newerphpprefered'] . ' (' . PHP_VERSION . ')'); } else { $content .= $this->_status_message('green', PHP_VERSION); diff --git a/lib/init.php b/lib/init.php index 76a2536a..0f0067a6 100644 --- a/lib/init.php +++ b/lib/init.php @@ -21,11 +21,11 @@ $_deftheme = 'Sparkle'; // validate correct php version -if (version_compare("7.0.0", PHP_VERSION, ">=")) { +if (version_compare("7.1.0", PHP_VERSION, ">=")) { // get hint-template $vendor_hint = file_get_contents(dirname(__DIR__) . '/templates/' . $_deftheme . '/misc/phprequirementfailed.tpl'); // replace values - $vendor_hint = str_replace("", "7.0.0", $vendor_hint); + $vendor_hint = str_replace("", "7.1.0", $vendor_hint); $vendor_hint = str_replace("", PHP_VERSION, $vendor_hint); $vendor_hint = str_replace("", date('Y', time()), $vendor_hint); die($vendor_hint);