summaryrefslogtreecommitdiffstats
path: root/install.php
diff options
context:
space:
mode:
authorSimon Rettberg2023-11-15 18:01:19 +0100
committerSimon Rettberg2023-11-15 18:01:19 +0100
commit8ffd1098ac21e209f4b90e1dde611aa1bd37cf9a (patch)
treec002481ce823abde49a8f65ac3e76f9afd43eeb1 /install.php
parentFix more type errors, stricter typing (diff)
downloadslx-admin-8ffd1098ac21e209f4b90e1dde611aa1bd37cf9a.tar.gz
slx-admin-8ffd1098ac21e209f4b90e1dde611aa1bd37cf9a.tar.xz
slx-admin-8ffd1098ac21e209f4b90e1dde611aa1bd37cf9a.zip
Remove 32bit support
int is always the native word size, and we don't really test anything on 32bit OSes anymore. 32bit support already required ugly workarounds in the past for large file sizes and ip2long, so we can finally get rid of those and just put an initial check in install.php.
Diffstat (limited to 'install.php')
-rw-r--r--install.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/install.php b/install.php
index 530298b1..6cbbe91f 100644
--- a/install.php
+++ b/install.php
@@ -21,6 +21,11 @@
use JetBrains\PhpStorm\NoReturn;
+if (PHP_INT_SIZE < 8) {
+ echo "32bit platforms no longer supported\n";
+ exit(1);
+}
+
/**
* Report back the update status to the browser/client and terminate execution.
* This has to be called by an update module at some point to signal the result