From: Tim Düsterhus Date: Wed, 11 May 2022 12:04:42 +0000 (+0200) Subject: Add 64-bit check to update_com.woltlab.wcf_5.5_checkSystemRequirements.php X-Git-Tag: 6.0.0_Alpha_1~1328^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ebb06ca769fae70502944ea5e8c94fb816aae5b5;p=GitHub%2FWoltLab%2FWCF.git Add 64-bit check to update_com.woltlab.wcf_5.5_checkSystemRequirements.php --- 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); +}