From 826dba1e1f2217125047e0f15473df6bd64ac7c0 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Fri, 23 Sep 2016 09:43:17 +1000 Subject: [PATCH] Add message around bare minimum php version --- CRM/Upgrade/Incremental/General.php | 2 +- CRM/Utils/Check/Component/Env.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CRM/Upgrade/Incremental/General.php b/CRM/Upgrade/Incremental/General.php index b74c4794c6..28a6955d07 100644 --- a/CRM/Upgrade/Incremental/General.php +++ b/CRM/Upgrade/Incremental/General.php @@ -38,7 +38,7 @@ */ class CRM_Upgrade_Incremental_General { const MIN_RECOMMENDED_PHP_VER = '5.5'; - + const BARE_MIN_PHP_VER = '5.3.23'; /** * Compute any messages which should be displayed before upgrade. * diff --git a/CRM/Utils/Check/Component/Env.php b/CRM/Utils/Check/Component/Env.php index 693f3faf77..10465791d4 100644 --- a/CRM/Utils/Check/Component/Env.php +++ b/CRM/Utils/Check/Component/Env.php @@ -41,10 +41,11 @@ class CRM_Utils_Check_Component_Env extends CRM_Utils_Check_Component { if (version_compare(phpversion(), CRM_Upgrade_Incremental_General::MIN_RECOMMENDED_PHP_VER) < 0) { $messages[] = new CRM_Utils_Check_Message( __FUNCTION__, - ts('This system uses PHP version %1. While this meets the minimum requirements for CiviCRM to function, upgrading to PHP version %2 or newer is recommended for maximum compatibility.', + ts('This system uses PHP version %1. While this meets the minimum requirements for CiviCRM to function, upgrading to PHP version %2 or newer is recommended for maximum compatibility. The bare minimum php version is %3', array( 1 => phpversion(), 2 => CRM_Upgrade_Incremental_General::MIN_RECOMMENDED_PHP_VER, + 3 => CRM_Upgrade_Incremental_General::BARE_MIN_PHP_VER, )), ts('PHP Out-of-Date'), \Psr\Log\LogLevel::NOTICE, -- 2.25.1