From 5949f912ba429c05109c5814f5efc85ff8872d02 Mon Sep 17 00:00:00 2001 From: 3D-I Date: Sat, 5 Jan 2019 01:32:43 +0100 Subject: [PATCH] [ticket/15926] Deny 3.2.x installation if PHP >= 7.3-dev PHPBB3-15926 --- phpBB/install/app.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/install/app.php b/phpBB/install/app.php index ef59689a65..ef29bd5722 100644 --- a/phpBB/install/app.php +++ b/phpBB/install/app.php @@ -20,9 +20,9 @@ define('PHPBB_ENVIRONMENT', 'production'); $phpbb_root_path = '../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); -if (version_compare(PHP_VERSION, '5.4') < 0) +if ( version_compare(PHP_VERSION, '5.4.7', '<') || version_compare(PHP_VERSION, '7.3-dev', '>=') ) { - die('You are running an unsupported PHP version. Please upgrade to PHP 5.4.0 or higher before trying to install or update to phpBB 3.2'); + die('You are running an unsupported PHP version. Please upgrade to PHP equal or greater than 5.4.7 but less than 7.3-dev in order to install or update to phpBB 3.2'); } $startup_new_path = $phpbb_root_path . 'install/update/update/new/install/startup.' . $phpEx;