projects
/
pharext
/
pharext
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix usage without ext/phar
[pharext/pharext]
/
src
/
pharext
/
ExecCmd.php
diff --git
a/src/pharext/ExecCmd.php
b/src/pharext/ExecCmd.php
index 5a6ee81f6fdad1be6b6eb4756d3c5cf966de58ae..f16d105dd30c808d9ab0a18ee2f26255737ce34a 100644
(file)
--- 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) {
* @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}");
}
$this->status = -1;
throw new Exception("Failed to run {$command}");
}