Эх сурвалжийг харах

Merge pull request #272 from justinrainbow/bug_211

SplFixedArray issue also affects PHP 5.3.3
Jordi Boggiano 13 жил өмнө
parent
commit
2e9de65ae0

+ 1 - 1
src/Composer/DependencyResolver/Solver.php

@@ -937,7 +937,7 @@ class Solver
             $this->installedMap[$package->getId()] = $package;
             $this->installedMap[$package->getId()] = $package;
         }
         }
 
 
-        if (version_compare(PHP_VERSION, '5.3.2', '>')) {
+        if (version_compare(PHP_VERSION, '5.3.3', '>')) {
             $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);