1
0
Fork 0

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

Run processes with predictable LANGUAGE=C
pull/3816/head
Jordi Boggiano 2015-03-04 15:44:56 +00:00
commit 462de7bd94
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class ProcessExecutor
$this->captureOutput = count(func_get_args()) > 1; $this->captureOutput = count(func_get_args()) > 1;
$this->errorOutput = null; $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'); $callback = is_callable($output) ? $output : array($this, 'outputHandler');
$process->run($callback); $process->run($callback);