summaryrefslogtreecommitdiffstats
path: root/lib/private/App
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/App')
-rw-r--r--lib/private/App/DependencyAnalyzer.php6
-rw-r--r--lib/private/App/Platform.php7
2 files changed, 13 insertions, 0 deletions
diff --git a/lib/private/App/DependencyAnalyzer.php b/lib/private/App/DependencyAnalyzer.php
index 6519e15bd8b..1e3a81c6351 100644
--- a/lib/private/App/DependencyAnalyzer.php
+++ b/lib/private/App/DependencyAnalyzer.php
@@ -145,6 +145,12 @@ class DependencyAnalyzer {
$missing[] = (string)$this->l->t('PHP with a version lower than %s is required.', $maxVersion);
}
}
+ if (isset($dependencies['php']['@attributes']['min-int-size'])) {
+ $intSize = $dependencies['php']['@attributes']['min-int-size'];
+ if ($intSize > $this->platform->getIntSize()*8) {
+ $missing[] = (string)$this->l->t('%sbit or higher PHP required.', $intSize);
+ }
+ }
return $missing;
}
diff --git a/lib/private/App/Platform.php b/lib/private/App/Platform.php
index 1d4c3767121..b1cb7c5aeb0 100644
--- a/lib/private/App/Platform.php
+++ b/lib/private/App/Platform.php
@@ -49,6 +49,13 @@ class Platform {
}
/**
+ * @return int
+ */
+ public function getIntSize() {
+ return PHP_INT_SIZE;
+ }
+
+ /**
* @return string
*/
public function getOcVersion() {