Signed-off-by: szaimen <szaimen@e.mail.de>
*/
namespace OC;
+use Composer\Semver\Semver;
use OCP\App\IAppManager;
use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\IEventDispatcher;
$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(), [