Permalink
Browse files

Do not use the .bat php proxy for unixy bins

  • Loading branch information...
1 parent fb62e2b commit b7d0892e46df4ab7321d39c9dbe7450fbafd3d0c @Seldaek Seldaek committed Aug 15, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/Composer/Downloader/PearPackageExtractor.php
@@ -107,7 +107,11 @@ private function copyFile($from, $to, $tasks, $vars)
$pattern = $task['from'];
$varName = $task['to'];
if (isset($vars[$varName])) {
- $replacements[$pattern] = $vars[$varName];
+ if ($varName === 'php_bin' && false === strpos($to, '.bat')) {
+ $replacements[$pattern] = preg_replace('{\.bat$}', '', $vars[$varName]);
+ } else {
+ $replacements[$pattern] = $vars[$varName];
+ }
}
}
$content = strtr($content, $replacements);

0 comments on commit b7d0892

Please sign in to comment.