1
0
Fork 0

Fix version_compare for ubuntu that ships with versions like 5.3.3-1 (bigger than 5.3.3)

pull/469/head
Jordi Boggiano 2012-03-16 16:07:30 +01:00
parent 15e764bb3f
commit 9ed05e09f3
1 changed files with 1 additions and 1 deletions

View File

@ -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);