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