summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2022-11-02 11:33:37 +0100
committerGitHub <noreply@github.com>2022-11-02 11:33:37 +0100
commit865529716e8ef45e3396e67576f2ea5985220d06 (patch)
treea5b8f343b7143333c5bfa32434fd79caf54c9d42 /lib
parent3dd21ebbf8bbca642ba701ea3d66f05c931ca099 (diff)
parentfaa747e44575269d9f4eb09d0a2c6aa3fe0501f8 (diff)
downloadnextcloud-server-865529716e8ef45e3396e67576f2ea5985220d06.tar.gz
nextcloud-server-865529716e8ef45e3396e67576f2ea5985220d06.zip
Merge pull request #34908 from nextcloud/enh/noid/disable-26-updates-32bit
disable upgrades to 26 for 32-bit
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Updater.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Updater.php b/lib/private/Updater.php
index 78613ddbb0c..cbe152db70a 100644
--- a/lib/private/Updater.php
+++ b/lib/private/Updater.php
@@ -40,6 +40,7 @@ declare(strict_types=1);
*/
namespace OC;
+use Composer\Semver\Semver;
use OCP\App\IAppManager;
use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\IEventDispatcher;
@@ -138,6 +139,9 @@ class Updater extends BasicEmitter {
$success = true;
try {
+ if (PHP_INT_SIZE < 8 && Semver::satisfies($currentVersion, '> 25')) {
+ 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(), [