Fix version_compare for ubuntu that ships with versions like 5.3.3-1 (bigger than 5.3.3)
parent
15e764bb3f
commit
9ed05e09f3
|
@ -911,7 +911,7 @@ class Solver
|
||||||
$this->installedMap[$package->getId()] = $package;
|
$this->installedMap[$package->getId()] = $package;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (version_compare(PHP_VERSION, '5.3.3', '>')) {
|
if (version_compare(PHP_VERSION, '5.3.4', '>=')) {
|
||||||
$this->decisionMap = new \SplFixedArray($this->pool->getMaxId() + 1);
|
$this->decisionMap = new \SplFixedArray($this->pool->getMaxId() + 1);
|
||||||
} else {
|
} else {
|
||||||
$this->decisionMap = array_fill(0, $this->pool->getMaxId() + 1, 0);
|
$this->decisionMap = array_fill(0, $this->pool->getMaxId() + 1, 0);
|
||||||
|
|
Loading…
Reference in New Issue