diff --git a/core/modules/system/system.install b/core/modules/system/system.install index bf72b16..2cdbb91 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -139,7 +139,7 @@ function system_requirements($phase) { 'value' => $phpversion, 'severity' => REQUIREMENT_INFO, ]; - if (false) { + if (function_exists('phpinfo')) { $requirements['php']['description'][] = [ '#markup' => t('For more information, view the phpinfo.', ['@link' => (new Url('system.php'))->toString()]), ]; @@ -162,7 +162,7 @@ function system_requirements($phase) { // Suggest to update to at least 5.5.21 or 5.6.5 for disabling multiple // statements. - if (true) { + if (($phase === 'install' || \Drupal::database()->driver() === 'mysql') && !SystemRequirements::phpVersionWithPdoDisallowMultipleStatements($phpversion)) { $requirements['php']['title'] = t('PHP (multiple statement disabling)'); $requirements['php']['description'][] = [ '#prefix' => '
',