From a4f48205fb05de2563314e860aac80efe21eb9d3 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 12 Jun 2016 14:07:26 +0200 Subject: [ticket/14670] Add new travis builds and PHP 5.5 requirement PHPBB3-14670 --- .travis.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index cb574a4d8d..94ee406977 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,22 +3,20 @@ sudo: required matrix: include: - - php: 5.4 + - php: 5.5 env: DB=none;NOTESTS=1 - - php: 5.4 - env: DB=mysqli # MyISAM - - php: 5.4 - env: DB=mysql - - php: 5.4 + - php: 5.5 + env: DB=mysqli + - php: 5.5 + evn: DB=mysql + - php: 5.5 env: DB=mariadb - - php: 5.4 + - php: 5.5 env: DB=postgres - - php: 5.4 + - php: 5.5 env: DB=sqlite3 - - php: 5.4 - env: DB=mysqli;SLOWTESTS=1 - php: 5.5 - env: DB=mysqli + env: DB=mysqli;SLOWTESTS=1 - php: 5.6 env: DB=mysqli - php: 7.0 -- cgit v1.2.3-65-gdbad From a33c875d2f1f9ef3e6837d429937fbc34781aacd Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 12 Jun 2016 14:14:53 +0200 Subject: [ticket/14670] Fix typo in .travis.yml PHPBB3-14670 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 94ee406977..f5cf36aaa1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ matrix: - php: 5.5 env: DB=mysqli - php: 5.5 - evn: DB=mysql + env: DB=mysql - php: 5.5 env: DB=mariadb - php: 5.5 -- cgit v1.2.3-65-gdbad From 574749daebe28cdb0d07b01394503d0453d9ff31 Mon Sep 17 00:00:00 2001 From: rxu Date: Tue, 27 Jun 2017 23:54:37 +0700 Subject: [ticket/14972] Update tests matrix to reflect bumping PHP version requirement PHPBB3-14972 --- .travis.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index f5cf36aaa1..a92c3bb56b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,19 +3,15 @@ sudo: required matrix: include: - - php: 5.5 + - php: 5.6 env: DB=none;NOTESTS=1 - - php: 5.5 - env: DB=mysqli - - php: 5.5 - env: DB=mysql - - php: 5.5 + - php: 5.6 env: DB=mariadb - - php: 5.5 + - php: 5.6 env: DB=postgres - - php: 5.5 + - php: 5.6 env: DB=sqlite3 - - php: 5.5 + - php: 5.6 env: DB=mysqli;SLOWTESTS=1 - php: 5.6 env: DB=mysqli -- cgit v1.2.3-65-gdbad From e36da012645a6c376b0ecb306ee6b99e5437a410 Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Wed, 26 Jul 2017 12:24:57 -0700 Subject: [ticket/15295] Restore tests on mysql and myisam PHPBB3-15295 --- .travis.yml | 4 +++- travis/setup-database.sh | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index a92c3bb56b..fd5e4da59e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,9 @@ matrix: - php: 5.6 env: DB=mysqli;SLOWTESTS=1 - php: 5.6 - env: DB=mysqli + env: DB=mysqli # MyISAM + - php: 5.6 + env: DB=mysql - php: 7.0 env: DB=mysqli - php: 7.1 diff --git a/travis/setup-database.sh b/travis/setup-database.sh index cf196e401f..cbd5e93e83 100755 --- a/travis/setup-database.sh +++ b/travis/setup-database.sh @@ -26,7 +26,7 @@ then psql -c 'create database phpbb_tests;' -U postgres fi -if [ "$TRAVIS_PHP_VERSION" == "5.5" -a "$DB" == "mysqli" ] +if [ "$TRAVIS_PHP_VERSION" == "5.6" -a "$DB" == "mysqli" ] then mysql -e 'SET GLOBAL storage_engine=MyISAM;' fi -- cgit v1.2.3-65-gdbad From e76c673e2e6a379ae7c4beccabfaaf8a5eb18371 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 30 Dec 2018 12:31:26 +0100 Subject: [ticket/14948] Update requirements and travis build matrix PHPBB3-14948 --- .travis.yml | 20 ++++++++++---------- phpBB/common.php | 2 +- phpBB/docs/INSTALL.html | 2 +- phpBB/docs/README.html | 6 +++--- phpBB/includes/startup.php | 6 +++--- phpBB/install/app.php | 4 ++-- phpBB/language/en/install.php | 2 +- .../requirements/task/check_server_environment.php | 2 +- phpBB/phpbb/template/asset.php | 7 ------- 9 files changed, 22 insertions(+), 29 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index fd5e4da59e..b2ae91bd70 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,26 +3,26 @@ sudo: required matrix: include: - - php: 5.6 + - php: 7.1 env: DB=none;NOTESTS=1 - - php: 5.6 + - php: 7.1 env: DB=mariadb - - php: 5.6 + - php: 7.1 env: DB=postgres - - php: 5.6 + - php: 7.1 env: DB=sqlite3 - - php: 5.6 + - php: 7.1 env: DB=mysqli;SLOWTESTS=1 - - php: 5.6 + - php: 7.1 env: DB=mysqli # MyISAM - - php: 5.6 - env: DB=mysql - - php: 7.0 - env: DB=mysqli - php: 7.1 + env: DB=mysql + - php: 7.2 env: DB=mysqli - php: 7.2 env: DB=mysqli + - php: 7.3 + env: DB=mysqli - php: nightly env: DB=mysqli allow_failures: diff --git a/phpBB/common.php b/phpBB/common.php index 230afd44e0..fc009dd8c4 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -12,7 +12,7 @@ */ /** -* Minimum Requirement: PHP 5.4.0 +* Minimum Requirement: PHP 7.1.0 */ if (!defined('IN_PHPBB')) diff --git a/phpBB/docs/INSTALL.html b/phpBB/docs/INSTALL.html index 4f7f07d3dc..7edfa8b43d 100644 --- a/phpBB/docs/INSTALL.html +++ b/phpBB/docs/INSTALL.html @@ -147,7 +147,7 @@
  • Oracle
  • -
  • PHP 5.4.7+ but less than PHP 7.3 with support for the database you intend to use.
  • +
  • PHP 7.1.0+ but less than PHP 7.4 with support for the database you intend to use.
  • The following PHP modules are required:
    • json
    • diff --git a/phpBB/docs/README.html b/phpBB/docs/README.html index 8fb9036ad8..85a00ef24b 100644 --- a/phpBB/docs/README.html +++ b/phpBB/docs/README.html @@ -265,7 +265,7 @@
      • Your server type/version, e.g. Apache 2.2.3, IIS 7, Sambar, etc.
      • -
      • PHP version and mode of operation, e.g. PHP 5.4.0 as a module, PHP 5.4.0 running as CGI, etc.
      • +
      • PHP version and mode of operation, e.g. PHP 7.1.0 as a module, PHP 7.1.0 running as CGI, etc.
      • DB type/version, e.g. MySQL 5.0.77, PostgreSQL 9.0.6, MSSQL Server 2000 (via ODBC), etc.
      @@ -323,11 +323,11 @@
      -

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

      +

      phpBB 3.2.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.

      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 MySQL 3.23, 4.x, 5.x, MariaDB 5.x, PostgreSQL 8.x, Oracle 8 and SQLite 3. Versions of PHP used range from 5.4.7 above 5.6.x to 7.1.x and 7.2.x without problem.

      +

      This board has been developed and tested under Linux and Windows (amongst others) running Apache using MySQL 3.23, 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.

      7.i. Notice on PHP security issues

      diff --git a/phpBB/includes/startup.php b/phpBB/includes/startup.php index 66f85657a5..d42ae58c42 100644 --- a/phpBB/includes/startup.php +++ b/phpBB/includes/startup.php @@ -23,11 +23,11 @@ $level = E_ALL & ~E_NOTICE & ~E_DEPRECATED; error_reporting($level); /** -* Minimum Requirement: PHP 5.4.0 +* Minimum Requirement: PHP 7.1.0 */ -if (version_compare(PHP_VERSION, '5.4') < 0) +if (version_compare(PHP_VERSION, '7.1') < 0) { - 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 7.1.0 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 710f49570b..9d04ec2156 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.7', '<') || version_compare(PHP_VERSION, '7.3-dev', '>=')) +if (version_compare(PHP_VERSION, '7.1') < 0) { - die('You are running an unsupported PHP version. Please upgrade to PHP equal to or greater than 5.4.7 but less than 7.3-dev in order to install or update to phpBB 3.2'); + 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'); } $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 370ab00988..7591eb16ec 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 5.4.0 or higher.', + 'PHP_VERSION_REQD_EXPLAIN' => 'phpBB requires PHP version 7.1.0 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 29f9777747..4607ce9ec2 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, '5.4') < 0) + if (version_compare($php_version, '7.1') < 0) { $this->response_helper->add_error_message('PHP_VERSION_REQD', 'PHP_VERSION_REQD_EXPLAIN'); diff --git a/phpBB/phpbb/template/asset.php b/phpBB/phpbb/template/asset.php index cb00f16549..d6b46234f0 100644 --- a/phpBB/phpbb/template/asset.php +++ b/phpBB/phpbb/template/asset.php @@ -45,13 +45,6 @@ class asset */ public function set_url($url) { - if (version_compare(PHP_VERSION, '5.4.7') < 0 && substr($url, 0, 2) === '//') - { - // Workaround for PHP 5.4.6 and older bug #62844 - add fake scheme and then remove it - $this->components = parse_url('http:' . $url); - $this->components['scheme'] = ''; - return; - } $this->components = parse_url($url); } -- cgit v1.2.3-65-gdbad From c92d4933ccec862d95b60dc0b38d117f27743589 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 30 Dec 2018 16:54:03 +0100 Subject: [ticket/14948] Remove mysql build as it's no longer supported in PHP >= 7.0 PHPBB3-14948 --- .travis.yml | 2 -- 1 file changed, 2 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index b2ae91bd70..38361b4fa1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,8 +15,6 @@ matrix: env: DB=mysqli;SLOWTESTS=1 - php: 7.1 env: DB=mysqli # MyISAM - - php: 7.1 - env: DB=mysql - php: 7.2 env: DB=mysqli - php: 7.2 -- cgit v1.2.3-65-gdbad From 4ff993fc1bdaa5c0619b32344ddcbb42b2669c3c Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 30 Dec 2018 20:59:46 +0100 Subject: [ticket/14948] Allow failures on PHP 7.3 until segfault is resolved PHPUnit still runs into segfaults on PHP 7.3.0. Let this test fail for now. PHPBB3-14948 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 38361b4fa1..da3df67473 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,6 +24,7 @@ matrix: - php: nightly env: DB=mysqli allow_failures: + - php: 7.3 - php: nightly fast_finish: true -- cgit v1.2.3-65-gdbad From 31ab3d93a216a1e7a9a4cdee2663b839b518c77a Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sat, 11 May 2019 17:37:12 +0200 Subject: [ticket/15828] Do not allow PHP 7.3 tests to fail PHPBB3-15828 --- .travis.yml | 3 --- 1 file changed, 3 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index da3df67473..c86a9dbcd3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,14 +17,11 @@ matrix: env: DB=mysqli # MyISAM - php: 7.2 env: DB=mysqli - - php: 7.2 - env: DB=mysqli - php: 7.3 env: DB=mysqli - php: nightly env: DB=mysqli allow_failures: - - php: 7.3 - php: nightly fast_finish: true -- cgit v1.2.3-65-gdbad