From 8d9d4e67cae8769ab19909464a4c7113f650b4f6 Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Mon, 8 Jan 2018 15:34:00 +0000 Subject: [PATCH] =?UTF-8?q?N=C2=B0942=20setup=20:=20max=20version=20for=20?= =?UTF-8?q?PHP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SVN:trunk[5213] --- setup/setuputils.class.inc.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/setup/setuputils.class.inc.php b/setup/setuputils.class.inc.php index 8c48e1d86..786c57057 100644 --- a/setup/setuputils.class.inc.php +++ b/setup/setuputils.class.inc.php @@ -54,6 +54,8 @@ class SetupUtils // versions that will be the minimum in next iTop major release (warning if not met) const PHP_NEXT_MIN_VERSION = '5.6.32'; const MYSQL_NEXT_MIN_VERSION = '5.6.38'; + // First recent version that is not yet validated by Combodo (warning) + const PHP_NOT_VALIDATED_VERSION = '7.1.9'; const MIN_MEMORY_LIMIT = 33554432; // = 32*1024*1024 Beware: Computations are not allowed in defining constants const SUHOSIN_GET_MAX_VALUE_LENGTH = 2048; @@ -359,6 +361,12 @@ class SetupUtils $aResult[] = new CheckResult(CheckResult::WARNING, "Error: The current PHP Version (".$sPhpVersion.") is lower than the minimum version required to run next ".ITOP_APPLICATION." release, which is (".self::PHP_NEXT_MIN_VERSION.")"); } + + if (version_compare($sPhpVersion, self::PHP_NOT_VALIDATED_VERSION, '>=')) + { + $aResult[] = new CheckResult(CheckResult::WARNING, + "Error: The current PHP Version (".$sPhpVersion.") is not yet validated by Combodo. You may experience some incompatibility issues."); + } } else {