Skip to content

Commit

Permalink
[Process] Fix regression introduced in #6620 / 880da01c49a9255f5022ab…
Browse files Browse the repository at this point in the history
…7e18bca38c18f56370, fixes #7082
  • Loading branch information
Seldaek committed Feb 17, 2013
1 parent 0ed3a0b commit 7d92786
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Process.php
Expand Up @@ -54,6 +54,10 @@ public function __construct($commandline, $cwd = null, array $env = null, $stdin

$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) {
Expand Down

0 comments on commit 7d92786

Please sign in to comment.