]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix update for 32-bit 35434/head
authorSimon L <szaimen@e.mail.de>
Fri, 25 Nov 2022 20:54:02 +0000 (21:54 +0100)
committerSimon L <szaimen@e.mail.de>
Fri, 25 Nov 2022 21:10:25 +0000 (22:10 +0100)
Signed-off-by: Simon L <szaimen@e.mail.de>
lib/private/Updater.php

index cbe152db70ab85047b2f2c59549d7259219eb634..53b07e2580941e333c2a5a7352c09eb024c408b2 100644 (file)
@@ -40,7 +40,6 @@ declare(strict_types=1);
  */
 namespace OC;
 
-use Composer\Semver\Semver;
 use OCP\App\IAppManager;
 use OCP\EventDispatcher\Event;
 use OCP\EventDispatcher\IEventDispatcher;
@@ -139,7 +138,7 @@ class Updater extends BasicEmitter {
 
                $success = true;
                try {
-                       if (PHP_INT_SIZE < 8 && Semver::satisfies($currentVersion, '> 25')) {
+                       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);