diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index 05339e5341a50ecfee87d384d45c2c0a28046048..f74859e17185f93f9d459f9c7c830418f1b0f1c8 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -23,18 +23,6 @@ */ const DRUPAL_MINIMUM_PHP = '5.5.9'; -/** - * Minimum version of PHP receiving security updates. - * - * @see https://secure.php.net/supported-versions.php - */ -const DRUPAL_MINIMUM_SECURE_PHP = '5.6'; - -/** - * Minimum recommended version of PHP. - */ -const DRUPAL_RECOMMENDED_PHP = '7.0.0'; - /** * Minimum recommended value of PHP memory_limit. * diff --git a/core/modules/system/system.install b/core/modules/system/system.install index 928062e8f5b630244830a15bd8f0ef191d4a85ec..f1fcfba24870fca5de52d0c026dae6807b9d9633 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -177,19 +177,11 @@ function system_requirements($phase) { // If PHP is old, it's not safe to continue with the requirements check. return $requirements; } - elseif (version_compare($phpversion, DRUPAL_MINIMUM_SECURE_PHP) < 0) { - $requirements['php']['description'] = t('Your PHP installation is running version %version, which is no longer receiving security support from the PHP development team. We recommend upgrading to version %recommended or higher.', ['%version' => $phpversion, '%recommended' => DRUPAL_RECOMMENDED_PHP]); - $requirements['php']['severity'] = REQUIREMENT_WARNING; - } - elseif (version_compare($phpversion, DRUPAL_RECOMMENDED_PHP) < 0) { - $requirements['php']['description'] = t('Your PHP installation is running version %version. We recommend upgrading to version %recommended or higher.', ['%version' => $phpversion, '%recommended' => DRUPAL_RECOMMENDED_PHP]); - $requirements['php']['severity'] = REQUIREMENT_INFO; - } // Suggest to update to at least 5.5.21 or 5.6.5 for disabling multiple // statements. if (($phase === 'install' || \Drupal::database()->driver() === 'mysql') && !SystemRequirements::phpVersionWithPdoDisallowMultipleStatements($phpversion)) { - $requirements['php_mysql'] = array( + $requirements['php'] = array( 'title' => t('PHP (multiple statement disabling)'), 'value' => $phpversion_label, 'description' => t('PHP versions higher than 5.6.5 or 5.5.21 provide built-in SQL injection protection for mysql databases. It is recommended to update.'),