composer/composer — pull request #1357 by emarref (2012-11-24 02:16:14+00:00)
Title: Throws descriptive exception when legacy paths cannot be read.

When a system with an open_basedir in effect attempts to glob dirs outside of the restriction, a generic exception is not caught.

$ php ./composer.phar install -v

[ErrorException]
Invalid argument supplied for foreach()

Exception trace:
() at phar:///[...]/symfony/composer.phar/src/Composer/Factory.php:103
[...]