[ticket/16649] Set PHP 7.3.0 as a minimum required version

Also rebase and fix composer.lock conflict

PHPBB3-16649
This commit is contained in:
rxu 2021-01-10 15:56:29 +07:00
parent 9d91d2f143
commit 9c64ee8d61
No known key found for this signature in database
GPG key ID: 955F0567380E586A
4 changed files with 2425 additions and 995 deletions

View file

@ -25,14 +25,16 @@
"phpbb/phpbb-core": "self.version" "phpbb/phpbb-core": "self.version"
}, },
"require": { "require": {
"php": "^7.2.5", "php": "^7.3 || ^8.0",
"ext-json": "*", "ext-json": "*",
"ext-mbstring": "*", "ext-mbstring": "*",
"ext-pdo": "*",
"bantu/ini-get-wrapper": "~1.0", "bantu/ini-get-wrapper": "~1.0",
"chita/topological_sort": "^3.0", "chita/topological_sort": "^3.0",
"composer/composer": "^2.0", "composer/composer": "^2.0",
"composer/installers": "^1.9", "composer/installers": "^1.9",
"composer/package-versions-deprecated": "^1.11", "composer/package-versions-deprecated": "^1.11",
"doctrine/dbal": "^3.0",
"google/recaptcha": "~1.1", "google/recaptcha": "~1.1",
"guzzlehttp/guzzle": "~6.3", "guzzlehttp/guzzle": "~6.3",
"lusitanian/oauth": "^0.8.1", "lusitanian/oauth": "^0.8.1",
@ -74,7 +76,7 @@
}, },
"config": { "config": {
"platform": { "platform": {
"php": "7.2.5" "php": "7.3.0"
} }
} }
} }

3406
phpBB/composer.lock generated

File diff suppressed because it is too large Load diff

View file

@ -147,7 +147,7 @@
<li>Oracle</li> <li>Oracle</li>
</ul> </ul>
</li> </li>
<li><strong>PHP 7.1.3+</strong> up to and including <strong>PHP 7.4</strong> with support for the database you intend to use.</li> <li><strong>PHP 7.3.0+</strong> with support for the database you intend to use.</li>
<li>The following PHP modules are required: <li>The following PHP modules are required:
<ul> <ul>
<li>json</li> <li>json</li>

View file

@ -23,11 +23,11 @@ $level = E_ALL & ~E_NOTICE & ~E_DEPRECATED;
error_reporting($level); error_reporting($level);
/** /**
* Minimum Requirement: PHP 7.1.3 * Minimum Requirement: PHP 7.3.0
*/ */
if (version_compare(PHP_VERSION, '7.1.3', '<')) if (version_compare(PHP_VERSION, '7.3.0', '<'))
{ {
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. Please upgrade to PHP 7.3.0 or higher before trying to install or update to phpBB 4.0');
} }
// In PHP 5.3.0 the error level has been raised to E_WARNING which causes problems // In PHP 5.3.0 the error level has been raised to E_WARNING which causes problems