summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/system/system.install2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 38eec361d..993bb4981 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -74,6 +74,8 @@ function system_requirements($phase) {
if (version_compare($phpversion, DRUPAL_MINIMUM_PHP) < 0) {
$requirements['php']['description'] = $t('Your PHP installation is too old. Drupal requires at least PHP %version.', array('%version' => DRUPAL_MINIMUM_PHP));
$requirements['php']['severity'] = REQUIREMENT_ERROR;
+ // If PHP is old, it's not safe to continue with the requirements check.
+ return $requirements;
}
// Test PHP register_globals setting.