composer/composer — pull request #1240 by nbaksalyar (2012-10-20 15:32:22+00:00)
Title: Fixed an issue with set HTTP proxy and PHP 5.4

Hi!

There exist a problem in Composer if a user have set an HTTP_PROXY environment variable.

To be exact, when I'm trying to do `php composer.phar install` with such environment, there's `RuntimeException`:

[RuntimeException]
Could not read composer.json

Array to string conversion

My PHP version:

c:\>php -v
PHP 5.4.3 (cli) (built: May 8 2012 00:51:31)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

This pull request fixes this issue.