summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
Diffstat (limited to 'update.php')
-rw-r--r--update.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/update.php b/update.php
index 21c33ff82..48525cb82 100644
--- a/update.php
+++ b/update.php
@@ -722,7 +722,8 @@ function update_fix_compatibility() {
}
if (!isset($file)
|| !isset($file->info['core'])
- || $file->info['core'] != DRUPAL_CORE_COMPATIBILITY) {
+ || $file->info['core'] != DRUPAL_CORE_COMPATIBILITY
+ || version_compare(phpversion(), $file->info['php']) < 0) {
$incompatible[] = $name;
}
}