From 7ef52f723cbf9714fd5e8a94f6a9b0c7b3085f1e Mon Sep 17 00:00:00 2001 From: 3D-I <480857+3D-I@users.noreply.github.com> Date: Tue, 31 Dec 2019 22:07:38 +0100 Subject: [ticket/16283] Update requirements for 3.3.0 PHPBB3-16283 --- phpBB/common.php | 2 +- phpBB/docs/README.html | 6 +++--- phpBB/includes/startup.php | 4 ++-- phpBB/install/app.php | 4 ++-- phpBB/language/en/install.php | 2 +- .../install/module/requirements/task/check_server_environment.php | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/phpBB/common.php b/phpBB/common.php index fc009dd8c4..e25274d3f4 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -12,7 +12,7 @@ */ /** -* Minimum Requirement: PHP 7.1.0 +* Minimum Requirement: PHP 7.1.3 */ if (!defined('IN_PHPBB')) diff --git a/phpBB/docs/README.html b/phpBB/docs/README.html index ca50fe95be..32b2d98ab4 100644 --- a/phpBB/docs/README.html +++ b/phpBB/docs/README.html @@ -265,7 +265,7 @@ @@ -323,11 +323,11 @@
-

phpBB 3.3.x takes advantage of new features added in PHP 7.1.0. We recommend that you upgrade to the latest stable release of PHP to run phpBB. The minimum version required is PHP 7.1.0 and the maximum supported version is the latest stable version of PHP.

+

phpBB 3.3.x takes advantage of new features added in PHP 7.1. We recommend that you upgrade to the latest stable release of PHP to run phpBB. The minimum version required is PHP 7.1.3 and the maximum supported version is the latest stable version of PHP.

Please remember that running any application on a development (unstable, e.g. a beta release) version of PHP can lead to strange/unexpected results which may appear to be bugs in the application. Therefore, we recommend you upgrade to the newest stable version of PHP before running phpBB. If you are running a development version of PHP please check any bugs you find on a system running a stable release before submitting.

-

This board has been developed and tested under Linux and Windows (amongst others) running Apache using MySQLi 4.1.3, 4.x, 5.x, MariaDB 5.x, PostgreSQL 8.x, Oracle 8 and SQLite 3. Versions of PHP used range from 7.1.0 to 7.2.x and 7.3.x without issues.

+

This board has been developed and tested under Linux and Windows (amongst others) running Apache using MySQLi 4.1.3, 4.x, 5.x, MariaDB 5.x, PostgreSQL 8.x, Oracle 8 and SQLite 3. Versions of PHP used range from 7.1.3 to 7.2.x and 7.3.x without issues.

7.i. Notice on PHP security issues

diff --git a/phpBB/includes/startup.php b/phpBB/includes/startup.php index d42ae58c42..a022fd0b73 100644 --- a/phpBB/includes/startup.php +++ b/phpBB/includes/startup.php @@ -23,9 +23,9 @@ $level = E_ALL & ~E_NOTICE & ~E_DEPRECATED; error_reporting($level); /** -* Minimum Requirement: PHP 7.1.0 +* Minimum Requirement: PHP 7.1.3 */ -if (version_compare(PHP_VERSION, '7.1') < 0) +if (version_compare(PHP_VERSION, '7.1.3') < 0) { die('You are running an unsupported PHP version. Please upgrade to PHP 7.1.0 or higher before trying to install or update to phpBB 3.3'); } diff --git a/phpBB/install/app.php b/phpBB/install/app.php index 9d04ec2156..4b3be11e98 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, '7.1') < 0) +if (version_compare(PHP_VERSION, '7.1.3') < 0) { - die('You are running an unsupported PHP version. Please upgrade to PHP 7.1.0 or higher before trying to install or update to phpBB 3.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'); } $startup_new_path = $phpbb_root_path . 'install/update/update/new/install/startup.' . $phpEx; diff --git a/phpBB/language/en/install.php b/phpBB/language/en/install.php index 53d9940560..61a7b72791 100644 --- a/phpBB/language/en/install.php +++ b/phpBB/language/en/install.php @@ -105,7 +105,7 @@ $lang = array_merge($lang, array( // Server requirements 'PHP_VERSION_REQD' => 'PHP version', - 'PHP_VERSION_REQD_EXPLAIN' => 'phpBB requires PHP version 7.1.0 or higher.', + 'PHP_VERSION_REQD_EXPLAIN' => 'phpBB requires PHP version 7.1.3 or higher.', 'PHP_GETIMAGESIZE_SUPPORT' => 'PHP getimagesize() function is required', 'PHP_GETIMAGESIZE_SUPPORT_EXPLAIN' => 'In order for phpBB to function correctly, the getimagesize function needs to be available.', 'PCRE_UTF_SUPPORT' => 'PCRE UTF-8 support', diff --git a/phpBB/phpbb/install/module/requirements/task/check_server_environment.php b/phpBB/phpbb/install/module/requirements/task/check_server_environment.php index 4607ce9ec2..93fffb911f 100644 --- a/phpBB/phpbb/install/module/requirements/task/check_server_environment.php +++ b/phpBB/phpbb/install/module/requirements/task/check_server_environment.php @@ -98,7 +98,7 @@ class check_server_environment extends \phpbb\install\task_base { $php_version = PHP_VERSION; - if (version_compare($php_version, '7.1') < 0) + if (version_compare($php_version, '7.1.3') < 0) { $this->response_helper->add_error_message('PHP_VERSION_REQD', 'PHP_VERSION_REQD_EXPLAIN'); -- cgit v1.2.1 From 16dad60eef209c5590adef5c7e46ffdfc50c144c Mon Sep 17 00:00:00 2001 From: 3D-I <480857+3D-I@users.noreply.github.com> Date: Tue, 31 Dec 2019 22:10:51 +0100 Subject: [ticket/16283] Update requirements for 3.3.0 PHPBB3-16283 --- phpBB/includes/startup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/startup.php b/phpBB/includes/startup.php index a022fd0b73..7450ca8707 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') < 0) { - die('You are running an unsupported PHP version. Please upgrade to PHP 7.1.0 or higher before trying to install or update to phpBB 3.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'); } // Register globals and magic quotes have been dropped in PHP 5.4 so no need for extra checks -- cgit v1.2.1 From c7dd7d42c68fc039467c55577f1a60ee1be3a744 Mon Sep 17 00:00:00 2001 From: 3D-I <480857+3D-I@users.noreply.github.com> Date: Wed, 1 Jan 2020 19:23:31 +0100 Subject: [ticket/16283] Update requirements for 3.3.0 PHPBB3-16283 --- phpBB/includes/startup.php | 2 +- phpBB/install/app.php | 2 +- .../install/module/requirements/task/check_server_environment.php | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/phpBB/includes/startup.php b/phpBB/includes/startup.php index 7450ca8707..5ead3b7fbb 100644 --- a/phpBB/includes/startup.php +++ b/phpBB/includes/startup.php @@ -25,7 +25,7 @@ error_reporting($level); /** * Minimum Requirement: PHP 7.1.3 */ -if (version_compare(PHP_VERSION, '7.1.3') < 0) +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'); } diff --git a/phpBB/install/app.php b/phpBB/install/app.php index 4b3be11e98..0e6212e37a 100644 --- a/phpBB/install/app.php +++ b/phpBB/install/app.php @@ -20,7 +20,7 @@ define('PHPBB_ENVIRONMENT', 'production'); $phpbb_root_path = '../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); -if (version_compare(PHP_VERSION, '7.1.3') < 0) +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'); } diff --git a/phpBB/phpbb/install/module/requirements/task/check_server_environment.php b/phpBB/phpbb/install/module/requirements/task/check_server_environment.php index 93fffb911f..41aa82623b 100644 --- a/phpBB/phpbb/install/module/requirements/task/check_server_environment.php +++ b/phpBB/phpbb/install/module/requirements/task/check_server_environment.php @@ -96,9 +96,7 @@ class check_server_environment extends \phpbb\install\task_base */ protected function check_php_version() { - $php_version = PHP_VERSION; - - if (version_compare($php_version, '7.1.3') < 0) + if (version_compare(PHP_VERSION, '7.1.3', '<')) { $this->response_helper->add_error_message('PHP_VERSION_REQD', 'PHP_VERSION_REQD_EXPLAIN'); -- cgit v1.2.1