From 2c661205e4fc784e64adcdd3cb1481ebfbd3eb88 Mon Sep 17 00:00:00 2001 From: Patrick Webster Date: Mon, 4 Jul 2022 21:12:43 -0500 Subject: [PATCH] [ticket/16916] Include PHP version number in startup/install error If the PHP version is too low, an error is displayed. This error does not include the current PHP version number, which often becomes a debate with users who believe they are running a supported version. PHPBB3-16916 --- phpBB/includes/startup.php | 2 +- phpBB/install/app.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/startup.php b/phpBB/includes/startup.php index 5ead3b7fbb..57e4825131 100644 --- a/phpBB/includes/startup.php +++ b/phpBB/includes/startup.php @@ -27,7 +27,7 @@ error_reporting($level); */ if (version_compare(PHP_VERSION, '7.1.3', '<')) { - die('You are running an unsupported PHP version. Please upgrade to PHP 7.1.3 or higher before trying to install or update to phpBB 3.3'); + die('You are running an unsupported PHP version (' . PHP_VERSION . '). Please upgrade to PHP 7.1.3 or higher before trying to install or update to phpBB 3.3'); } // Register globals and magic quotes have been dropped in PHP 5.4 so no need for extra checks diff --git a/phpBB/install/app.php b/phpBB/install/app.php index bf2c81bfcc..0cb2ead92a 100644 --- a/phpBB/install/app.php +++ b/phpBB/install/app.php @@ -22,7 +22,7 @@ $phpEx = substr(strrchr(__FILE__, '.'), 1); if (version_compare(PHP_VERSION, '7.1.3', '<')) { - die('You are running an unsupported PHP version. Please upgrade to PHP 7.1.3 or higher before trying to install or update to phpBB 3.3'); + die('You are running an unsupported PHP version (' . PHP_VERSION . '). Please upgrade to PHP 7.1.3 or higher before trying to install or update to phpBB 3.3'); } $startup_new_path = $phpbb_root_path . 'install/update/update/new/install/startup.' . $phpEx;