dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f01915
)
make wfShellExec() work on windows a bit better
author
Tim Starling
<tstarling@users.mediawiki.org>
Mon, 6 Feb 2006 05:14:58 +0000
(
05:14
+0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Mon, 6 Feb 2006 05:14:58 +0000
(
05:14
+0000)
includes/GlobalFunctions.php
patch
|
blob
|
history
diff --git
a/includes/GlobalFunctions.php
b/includes/GlobalFunctions.php
index
a300252
..
7a46e5a
100644
(file)
--- a/
includes/GlobalFunctions.php
+++ b/
includes/GlobalFunctions.php
@@
-1764,6
+1764,10
@@
function wfShellExec( $cmd )
$cmd = escapeshellarg( $script ) . " $time $memKB $cmd";
}
}
+ } elseif ( php_uname( 's' ) == 'Windows NT' ) {
+ # This is a hack to work around PHP's flawed invocation of cmd.exe
+ # http://news.php.net/php.internals/21796
+ $cmd = '"' . $cmd . '"';
}
return shell_exec( $cmd );
}