[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
This commit is contained in:
Patrick Webster 2022-07-04 21:12:43 -05:00
parent 2f72950d2d
commit 2c661205e4
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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;