[Process] Fix #10681, process are failing on Windows Server 2003
This commit is contained in:
parent
76170fcf96
commit
46fdfbbdef
@ -233,10 +233,11 @@ class Process
|
|||||||
$commandline = $this->commandline;
|
$commandline = $this->commandline;
|
||||||
|
|
||||||
if (defined('PHP_WINDOWS_VERSION_BUILD') && $this->enhanceWindowsCompatibility) {
|
if (defined('PHP_WINDOWS_VERSION_BUILD') && $this->enhanceWindowsCompatibility) {
|
||||||
$commandline = 'cmd /V:ON /E:ON /C "('.$commandline.')"';
|
$commandline = 'cmd /V:ON /E:ON /C "('.$commandline.')';
|
||||||
foreach ($this->processPipes->getFiles() as $offset => $filename) {
|
foreach ($this->processPipes->getFiles() as $offset => $filename) {
|
||||||
$commandline .= ' '.$offset.'>'.$filename;
|
$commandline .= ' '.$offset.'>'.ProcessUtils::escapeArgument($filename);
|
||||||
}
|
}
|
||||||
|
$commandline .= '"';
|
||||||
|
|
||||||
if (!isset($this->options['bypass_shell'])) {
|
if (!isset($this->options['bypass_shell'])) {
|
||||||
$this->options['bypass_shell'] = true;
|
$this->options['bypass_shell'] = true;
|
||||||
|
Reference in New Issue
Block a user