From ebb06ca769fae70502944ea5e8c94fb816aae5b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 11 May 2022 14:04:42 +0200 Subject: [PATCH] Add 64-bit check to update_com.woltlab.wcf_5.5_checkSystemRequirements.php --- ...ate_com.woltlab.wcf_5.5_checkSystemRequirements.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.5_checkSystemRequirements.php b/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.5_checkSystemRequirements.php index 022014e0cf..dfc6db5a41 100644 --- a/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.5_checkSystemRequirements.php +++ b/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.5_checkSystemRequirements.php @@ -22,3 +22,13 @@ if (!\version_compare($phpVersion, $neededPhpVersion, '>=')) { throw new \RuntimeException($message); } + +if (\PHP_INT_SIZE != 8) { + if (WCF::getLanguage()->getFixedLanguageCode() === 'de') { + $message = "Die eingesetzte PHP-Version muss 64-Bit-Ganzzahlen unterstützen."; + } else { + $message = "The PHP version must support 64-bit integers"; + } + + throw new \RuntimeException($message); +} -- 2.20.1