1
0
Fork 0

Do not use the .bat php proxy for unixy bins

pull/1003/merge
Jordi Boggiano 2012-08-15 12:24:06 +02:00
parent fb62e2b52f
commit b7d0892e46
1 changed files with 5 additions and 1 deletions

View File

@ -107,7 +107,11 @@ class PearPackageExtractor
$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);