diff options
author | szaimen <szaimen@e.mail.de> | 2022-07-11 17:46:31 +0300 |
---|---|---|
committer | Simon L. (Rebase PR Action) <szaimen@e.mail.de> | 2022-07-13 12:33:33 +0300 |
commit | cf9b1082ed4550d3ece15d1c2cc613a0a5e008bc (patch) | |
tree | 0a17d7528b39dcb1b99cacd9aef6d7ef4a032f59 /apps/settings/lib/Controller | |
parent | 22de24324728025c5299850317fc697b33375caf (diff) |
add a setup check for 64 bit
Signed-off-by: szaimen <szaimen@e.mail.de>
Diffstat (limited to 'apps/settings/lib/Controller')
-rw-r--r-- | apps/settings/lib/Controller/CheckSetupController.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/settings/lib/Controller/CheckSetupController.php b/apps/settings/lib/Controller/CheckSetupController.php index 51027c5ad1c..8f469c6c4e9 100644 --- a/apps/settings/lib/Controller/CheckSetupController.php +++ b/apps/settings/lib/Controller/CheckSetupController.php @@ -747,6 +747,14 @@ Raw output return true; } + protected function is64bit(): bool { + if (PHP_INT_SIZE < 8) { + return false; + } else { + return true; + } + } + protected function isMysqlUsedWithoutUTF8MB4(): bool { return ($this->config->getSystemValue('dbtype', 'sqlite') === 'mysql') && ($this->config->getSystemValue('mysql.utf8mb4', false) === false); } @@ -880,6 +888,7 @@ Raw output 'appDirsWithDifferentOwner' => $this->getAppDirsWithDifferentOwner(), 'isImagickEnabled' => $this->isImagickEnabled(), 'areWebauthnExtensionsEnabled' => $this->areWebauthnExtensionsEnabled(), + 'is64bit' => $this->is64bit(), 'recommendedPHPModules' => $this->hasRecommendedPHPModules(), 'pendingBigIntConversionColumns' => $this->hasBigIntConversionPendingColumns(), 'isMysqlUsedWithoutUTF8MB4' => $this->isMysqlUsedWithoutUTF8MB4(), |