Issue #3252088 by longwave, Gábor Hojtsy, catch: Increase Drupal::MINIMUM_PHP to 8.0.0
parent
f94b1247b8
commit
401a725ed4
|
@ -48,7 +48,7 @@
|
|||
"preferred-install": "dist",
|
||||
"autoloader-suffix": "Drupal9",
|
||||
"platform": {
|
||||
"php": "7.3.0"
|
||||
"php": "8.0.0"
|
||||
}
|
||||
},
|
||||
"extra": {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "562b32f689c2ece1649aeb3c21d6bd11",
|
||||
"content-hash": "ed658741b2245d9acf4ff93235a4eb7e",
|
||||
"packages": [
|
||||
{
|
||||
"name": "asm89/stack-cors",
|
||||
|
@ -535,7 +535,7 @@
|
|||
"dist": {
|
||||
"type": "path",
|
||||
"url": "core",
|
||||
"reference": "7c4cc1ffebefea56f52ade87488754039b71eaaa"
|
||||
"reference": "17394ff082fb62eb55ce7d8f7cf5fa97f2d27a28"
|
||||
},
|
||||
"require": {
|
||||
"asm89/stack-cors": "^1.1",
|
||||
|
@ -561,7 +561,7 @@
|
|||
"laminas/laminas-feed": "^2.12",
|
||||
"masterminds/html5": "^2.1",
|
||||
"pear/archive_tar": "^1.4.14",
|
||||
"php": ">=7.3.0",
|
||||
"php": ">=8.0.0",
|
||||
"psr/log": "^1.0",
|
||||
"stack/builder": "^1.0",
|
||||
"symfony-cmf/routing": "^2.1",
|
||||
|
@ -7077,7 +7077,6 @@
|
|||
"type": "github"
|
||||
}
|
||||
],
|
||||
"abandoned": true,
|
||||
"time": "2020-11-30T07:30:19+00:00"
|
||||
},
|
||||
{
|
||||
|
@ -8022,7 +8021,7 @@
|
|||
"platform": [],
|
||||
"platform-dev": [],
|
||||
"platform-overrides": {
|
||||
"php": "7.3.0"
|
||||
"php": "8.0.0"
|
||||
},
|
||||
"plugin-api-version": "2.1.0"
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ QUICKSTART
|
|||
----------------------
|
||||
|
||||
Prerequisites:
|
||||
- PHP 7.3.0 (or greater) (https://php.net).
|
||||
- PHP 8.0.0 (or greater) (https://php.net).
|
||||
|
||||
In the instructions below, replace the version x.y.z with the specific version
|
||||
you wish to download. Example: 8.6.0.zip. You can find the latest stable version
|
||||
|
@ -48,8 +48,7 @@ Drupal requires:
|
|||
- A web server with PHP support, for example:
|
||||
- Apache 2.4.7 (or greater) (http://httpd.apache.org/).
|
||||
- Nginx 1.1 (or greater) (http://nginx.com/).
|
||||
- PHP 7.3.0 (or greater) (http://php.net/). For better security support it is
|
||||
recommended to update to at least 7.3.13.
|
||||
- PHP 8.0.0 (or greater) (http://php.net/).
|
||||
- One of the following databases:
|
||||
- MySQL 5.7.8 (or greater) (http://www.mysql.com/).
|
||||
- MariaDB 10.3.7 (or greater) (https://mariadb.org/). MariaDB is a fully
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
"ext-SPL": "*",
|
||||
"ext-tokenizer": "*",
|
||||
"ext-xml": "*",
|
||||
"php": ">=7.3.0",
|
||||
"php": ">=8.0.0",
|
||||
"symfony/console": "^4.4",
|
||||
"symfony/dependency-injection": "^4.4",
|
||||
"symfony/event-dispatcher": "^4.4",
|
||||
|
|
|
@ -29,8 +29,8 @@ define('MAINTENANCE_MODE', 'install');
|
|||
// hardcoded minimum PHP version below (both in the version_compare() call and
|
||||
// in the printed message to the user) whenever \Drupal::MINIMUM_PHP is
|
||||
// updated.
|
||||
if (version_compare(PHP_VERSION, '7.3.0') < 0) {
|
||||
print 'Your PHP installation is too old. Drupal requires at least PHP 7.3.0. See the <a href="https://www.drupal.org/docs/9/how-drupal-9-is-made-and-what-is-included/environment-requirements-of-drupal-9#s-php-version-requirement">Environment requirements of Drupal 9</a> page for more information.';
|
||||
if (version_compare(PHP_VERSION, '8.0.0') < 0) {
|
||||
print 'Your PHP installation is too old. Drupal requires at least PHP 8.0.0. See the <a href="https://www.drupal.org/docs/9/how-drupal-9-is-made-and-what-is-included/environment-requirements-of-drupal-9#s-php-version-requirement">Environment requirements of Drupal 9</a> page for more information.';
|
||||
exit;
|
||||
}
|
||||
|
||||
|
|
|
@ -96,7 +96,7 @@ class Drupal {
|
|||
* that Drupal no longer supports that PHP version.
|
||||
* - An error is shown in the status report that the PHP version is too old.
|
||||
*/
|
||||
const MINIMUM_SUPPORTED_PHP = '7.3.0';
|
||||
const MINIMUM_SUPPORTED_PHP = '8.0.0';
|
||||
|
||||
/**
|
||||
* Minimum allowed version of PHP for Drupal to be bootstrapped.
|
||||
|
@ -114,7 +114,7 @@ class Drupal {
|
|||
* - Once in the error message printed to the user immediately after.
|
||||
* Remember to update both whenever this constant is updated.
|
||||
*/
|
||||
const MINIMUM_PHP = '7.3.0';
|
||||
const MINIMUM_PHP = '8.0.0';
|
||||
|
||||
/**
|
||||
* Minimum recommended value of PHP memory_limit.
|
||||
|
|
Loading…
Reference in New Issue