From 9ed05e09f34b8ad000289f8680491447a63185dc Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 16 Mar 2012 16:07:30 +0100 Subject: [PATCH] Fix version_compare for ubuntu that ships with versions like 5.3.3-1 (bigger than 5.3.3) --- src/Composer/DependencyResolver/Solver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/DependencyResolver/Solver.php b/src/Composer/DependencyResolver/Solver.php index fd39faed3..aa832b113 100644 --- a/src/Composer/DependencyResolver/Solver.php +++ b/src/Composer/DependencyResolver/Solver.php @@ -911,7 +911,7 @@ class Solver $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); } else { $this->decisionMap = array_fill(0, $this->pool->getMaxId() + 1, 0);