浏览代码

Merge pull request #3813 from nicolas-grekas/language-c

Run processes with predictable LANGUAGE=C
Jordi Boggiano 10 年之前
父节点
当前提交
462de7bd94
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Composer/Util/ProcessExecutor.php

+ 1 - 1
src/Composer/Util/ProcessExecutor.php

@@ -56,7 +56,7 @@ class ProcessExecutor
 
         $this->captureOutput = count(func_get_args()) > 1;
         $this->errorOutput = null;
-        $process = new Process($command, $cwd, null, null, static::getTimeout());
+        $process = new Process($command, $cwd, array('LANGUAGE' => 'C') + $_ENV + $_SERVER, null, static::getTimeout());
 
         $callback = is_callable($output) ? $output : array($this, 'outputHandler');
         $process->run($callback);