|
@@ 136-141 (lines=6) @@
|
| 133 |
|
*/ |
| 134 |
|
private function analyzePhpVersion(array $dependencies) { |
| 135 |
|
$missing = []; |
| 136 |
|
if (isset($dependencies['php']['@attributes']['min-version'])) { |
| 137 |
|
$minVersion = $dependencies['php']['@attributes']['min-version']; |
| 138 |
|
if ($this->compareSmaller($this->platform->getPhpVersion(), $minVersion)) { |
| 139 |
|
$missing[] = (string)$this->l->t('PHP %s or higher is required.', $minVersion); |
| 140 |
|
} |
| 141 |
|
} |
| 142 |
|
if (isset($dependencies['php']['@attributes']['max-version'])) { |
| 143 |
|
$maxVersion = $dependencies['php']['@attributes']['max-version']; |
| 144 |
|
if ($this->compareBigger($this->platform->getPhpVersion(), $maxVersion)) { |
|
@@ 142-147 (lines=6) @@
|
| 139 |
|
$missing[] = (string)$this->l->t('PHP %s or higher is required.', $minVersion); |
| 140 |
|
} |
| 141 |
|
} |
| 142 |
|
if (isset($dependencies['php']['@attributes']['max-version'])) { |
| 143 |
|
$maxVersion = $dependencies['php']['@attributes']['max-version']; |
| 144 |
|
if ($this->compareBigger($this->platform->getPhpVersion(), $maxVersion)) { |
| 145 |
|
$missing[] = (string)$this->l->t('PHP with a version lower than %s is required.', $maxVersion); |
| 146 |
|
} |
| 147 |
|
} |
| 148 |
|
if (isset($dependencies['php']['@attributes']['min-int-size'])) { |
| 149 |
|
$intSize = $dependencies['php']['@attributes']['min-int-size']; |
| 150 |
|
if ($intSize > $this->platform->getIntSize()*8) { |