From 935eaa96461f91feeae2403c98440604a92fdd0d Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 1 Jun 2012 13:32:42 +0200 Subject: [PATCH] Fix windows proxy code --- src/Composer/Installer/LibraryInstaller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Installer/LibraryInstaller.php b/src/Composer/Installer/LibraryInstaller.php index 685c0f178..a7047da69 100644 --- a/src/Composer/Installer/LibraryInstaller.php +++ b/src/Composer/Installer/LibraryInstaller.php @@ -226,7 +226,7 @@ class LibraryInstaller implements InstallerInterface $line = fgets($handle); fclose($handle); if (preg_match('{^#!/(?:usr/bin/env )?(?:[^/]+/)*(.+)$}m', $line, $match)) { - $caller = $match[1]; + $caller = trim($match[1]); } else { $caller = 'php'; }