Merge branch '2.1' into 2.2

* 2.1:
  [Process] Fix regression introduced in #6620 / 880da01c49, fixes #7082
This commit is contained in:
Fabien Potencier 2013-02-18 22:28:10 +01:00
commit 95a8aa5af2

View File

@ -131,6 +131,10 @@ class Process
$this->commandline = $commandline;
$this->cwd = $cwd;
// on windows, if the cwd changed via chdir(), proc_open defaults to the dir where php was started
if (null === $this->cwd && defined('PHP_WINDOWS_VERSION_BUILD')) {
$this->cwd = getcwd();
}
if (null !== $env) {
$this->env = array();
foreach ($env as $key => $value) {