Unverified Commit 9b4915d5 authored by larowlan's avatar larowlan
Browse files

Issue #2927344 by Wim Leers, xjm, TR, webchick, larowlan, David_Rothstein,...

Issue #2927344 by Wim Leers, xjm, TR, webchick, larowlan, David_Rothstein, catch, yoroy: Specifically warn about end dates for PHP support for old versions
parent 33e0ba31
......@@ -190,7 +190,7 @@ function system_requirements($phase) {
return $requirements;
}
if ((version_compare($phpversion, DRUPAL_RECOMMENDED_PHP) < 0) && ($phase === 'install' || $phase === 'runtime')) {
// Warn if still on PHP 5. If If at least PHP 7.0, relax from "warning" to
// Warn if still on PHP 5. If at least PHP 7.0, relax from "warning" to
// "info", and show it at runtime only, to not scare users while installing.
if (version_compare($phpversion, '7.0') < 0) {
$requirements['php']['description'] = t('Drupal will drop support for this version on March 6, 2019. Upgrade to PHP version %recommended or higher to ensure your site can receive updates and remain secure. See <a href="http://php.net/supported-versions.php">PHP\'s version support documentation</a> and the <a href=":php_requirements">Drupal 8 PHP requirements handbook page</a> for more information.', ['%recommended' => DRUPAL_RECOMMENDED_PHP, ':php_requirements' => 'https://www.drupal.org/docs/8/system-requirements/php']);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment