X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=src%2Fpharext%2FExecCmd.php;h=f16d105dd30c808d9ab0a18ee2f26255737ce34a;hb=d5207a43143f6c41520d024ba682cd5d69517416;hp=5a6ee81f6fdad1be6b6eb4756d3c5cf966de58ae;hpb=337e76964be2ed6724633ac477affc3a28426c97;p=pharext%2Fpharext diff --git a/src/pharext/ExecCmd.php b/src/pharext/ExecCmd.php index 5a6ee81..f16d105 100644 --- a/src/pharext/ExecCmd.php +++ b/src/pharext/ExecCmd.php @@ -61,7 +61,7 @@ class ExecCmd * @return int exit status */ private function suExec($command, $verbose = null) { - if (!($proc = proc_open($command, [STDIN,["pipe","w"],["pipe","w"]], $pipes))) { + if (!($proc = proc_open($command, [STDIN,["pipe","w"],["pipe","w"]], $pipes, getcwd()))) { $this->status = -1; throw new Exception("Failed to run {$command}"); }