diff --git a/index.php b/index.php
index d15ae621..4c00611f 100644
--- a/index.php
+++ b/index.php
@@ -21,7 +21,6 @@
*
*/
-
class UpdateException extends \Exception {
protected $data;
@@ -167,6 +166,11 @@ public function checkForUpdate() {
$versionString = isset($response['versionstring']) ? $response['versionstring'] : '';
if ($version !== '' && $version !== $this->currentVersion) {
+ if (PHP_INT_SIZE < 8 && version_compare($version, '26.0.0.0', '>=')) {
+ $this->updateAvailable = false;
+ $updateText = '
You are running a 32-bit system. Nextcloud 26 supports 64-bit only, therefore an update cannot be offered. Please switch to a 64-bit system first.';
+ return $updateText;
+ }
$this->updateAvailable = true;
$releaseChannel = $this->getCurrentReleaseChannel();
$updateText = 'Update to ' . htmlentities($versionString) . ' available. (channel: "' . htmlentities($releaseChannel) . '")
Following file will be downloaded automatically: ' . $response['url'] . '';
diff --git a/lib/Updater.php b/lib/Updater.php
index 59614b6c..82083750 100644
--- a/lib/Updater.php
+++ b/lib/Updater.php
@@ -137,6 +137,11 @@ public function checkForUpdate() {
$versionString = isset($response['versionstring']) ? $response['versionstring'] : '';
if ($version !== '' && $version !== $this->currentVersion) {
+ if (PHP_INT_SIZE < 8 && version_compare($version, '26.0.0.0', '>=')) {
+ $this->updateAvailable = false;
+ $updateText = '
You are running a 32-bit system. Nextcloud 26 supports 64-bit only, therefore an update cannot be offered. Please switch to a 64-bit system first.';
+ return $updateText;
+ }
$this->updateAvailable = true;
$releaseChannel = $this->getCurrentReleaseChannel();
$updateText = 'Update to ' . htmlentities($versionString) . ' available. (channel: "' . htmlentities($releaseChannel) . '")
Following file will be downloaded automatically: ' . $response['url'] . '';
diff --git a/updater.phar b/updater.phar
index 9d5b87f7..cbf662b5 100755
Binary files a/updater.phar and b/updater.phar differ