diff --git a/composer.json b/composer.json index 89628d0827373cb4426f8427ee1ed4ef7f3f0bd8..f1ec9cc13cefe583e9505faf442ff0560b044f3d 100644 --- a/composer.json +++ b/composer.json @@ -48,7 +48,7 @@ "preferred-install": "dist", "autoloader-suffix": "Drupal9", "platform": { - "php": "7.3.0" + "php": "8.0.0" } }, "extra": { diff --git a/composer.lock b/composer.lock index f7c2660b0d05b8ac1b470dd5803007879219b6a8..775de9583fffd6a6532eab37c468a43a7940dd33 100644 --- a/composer.lock +++ b/composer.lock @@ -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" } diff --git a/core/INSTALL.txt b/core/INSTALL.txt index 3ae63b882f145980875b00d6b2665abd28242032..721879d6d255f7fde57ba48ee774cd4ba3c7dd7e 100644 --- a/core/INSTALL.txt +++ b/core/INSTALL.txt @@ -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 diff --git a/core/composer.json b/core/composer.json index 45a4555f4a143df370bb0db898dc82ee1cf0fbcd..a7841051c4f7ce23cb775d3ee84d6ae25e7145cf 100644 --- a/core/composer.json +++ b/core/composer.json @@ -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", diff --git a/core/install.php b/core/install.php index 422cc099c5a8382b8d4558b7a035cfd096c0df9f..347f027dac15c249e7c11801f651e582815cad58 100644 --- a/core/install.php +++ b/core/install.php @@ -29,8 +29,8 @@ // 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; } diff --git a/core/lib/Drupal.php b/core/lib/Drupal.php index ca4295eb5df9530a9b9a5774575443005b68642c..604fad7e278a5c460f7bb423ac7885a611dffb79 100644 --- a/core/lib/Drupal.php +++ b/core/lib/Drupal.php @@ -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.