diff options
author | Pytal <24800714+Pytal@users.noreply.github.com> | 2022-11-28 10:42:40 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-28 10:42:40 -0800 |
commit | 3c207d9932f21a87400591a71d8b99e37819d717 (patch) | |
tree | b92b52f3be92cfc1dca26992aab71b272dc31fa3 /lib | |
parent | 233ae5a58b6b013090ce854661e32c0d061f1b63 (diff) | |
parent | f13ffc2a6418d27dec79ca8fc751eaba008710d8 (diff) | |
download | nextcloud-server-3c207d9932f21a87400591a71d8b99e37819d717.tar.gz nextcloud-server-3c207d9932f21a87400591a71d8b99e37819d717.zip |
Merge pull request #35453 from nextcloud/backport/35434/stable25
[stable25] fix update for 32-bit
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Updater.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/Updater.php b/lib/private/Updater.php index cbe152db70a..53b07e25809 100644 --- a/lib/private/Updater.php +++ b/lib/private/Updater.php @@ -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); |