aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Updater.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Updater.php')
-rw-r--r--lib/private/Updater.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Updater.php b/lib/private/Updater.php
index 78613ddbb0c..53b07e25809 100644
--- a/lib/private/Updater.php
+++ b/lib/private/Updater.php
@@ -138,6 +138,9 @@ class Updater extends BasicEmitter {
$success = true;
try {
+ if (PHP_INT_SIZE < 8 && version_compare($currentVersion, '26.0.0.0', '>=')) {
+ throw new HintException('You are running a 32-bit PHP version. Cannot upgrade to Nextcloud 26 and higher. Please switch to 64-bit PHP.');
+ }
$this->doUpgrade($currentVersion, $installedVersion);
} catch (HintException $exception) {
$this->log->error($exception->getMessage(), [