composer/composer — pull request #1168 by Seldaek (2012-10-01 13:58:03+00:00)
Title: [WIP] Add support for one-file-per-provider composer repositories

@naderman As discussed, this seems to fail because the Pool::getMaxId isn't valid anymore. So the SplFixedArray gets created with the wrong size, and if it's created with a bigger size then stuff fails in other places where it loops over every item in the array but many of those just don't exist as packages so Pool::packageById returns non-objects.

```
Installing dependencies

[RuntimeException]
Index invalid or out of range

Exception trace:
() at src\Composer\DependencyResolver\Decisions.php:81
Composer\DependencyResolver\Decisions::decidedInstall() at src\Composer\DependencyResolver\Decisions.php:81
```