diff --git a/core/modules/system/system.install b/core/modules/system/system.install index 9092e35..bf72b16 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -7,7 +7,6 @@ use Drupal\Component\Utility\Crypt; use Drupal\Component\Utility\Environment; -use Drupal\Component\Utility\SafeMarkup; use Drupal\Core\Url; use Drupal\Core\Database\Database; use Drupal\Core\DrupalKernel; @@ -133,26 +132,27 @@ function system_requirements($phase) { } } - // Test PHP version and show link to phpinfo() if it's available + // Test PHP version and show link to phpinfo() if it's available. $phpversion = phpversion(); $requirements['php'] = [ 'title' => t('PHP'), 'value' => $phpversion, + 'severity' => REQUIREMENT_INFO, ]; - if (function_exists('phpinfo')) { + if (false) { $requirements['php']['description'][] = [ - '#markup' => t('For more information, view the phpinfo', ['@php-info', '/admin/reports/status/php']), + '#markup' => t('For more information, view the phpinfo.', ['@link' => (new Url('system.php'))->toString()]), ]; } else { $requirements['php']['description'][] = [ '#markup' => t('The phpinfo() function has been disabled for security reasons. To see your server\'s phpinfo() information, change your PHP settings or contact your server administrator. For more information, Enabling and disabling phpinfo() handbook page.', ['@phpinfo' => 'https://www.drupal.org/node/243993']), ]; - $requirements['php']['severity'] = REQUIREMENT_INFO; } if (version_compare($phpversion, DRUPAL_MINIMUM_PHP) < 0) { $requirements['php']['description'][] = [ + '#prefix' => '
', '#markup' => t('Your PHP installation is too old. Drupal requires at least PHP %version.', ['%version' => DRUPAL_MINIMUM_PHP]), ]; $requirements['php']['severity'] = REQUIREMENT_ERROR; @@ -162,12 +162,12 @@ function system_requirements($phase) { // 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)) { + if (true) { $requirements['php']['title'] = t('PHP (multiple statement disabling)'); $requirements['php']['description'][] = [ + '#prefix' => '
', '#markup' => 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.'), ]; - $requirements['php']['severity'] = REQUIREMENT_INFO; } // Test for PHP extensions.