Update Process.php
Stop autoruns when shelling on Windows. Original PR was on https://github.com/symfony/Process/pull/9#issuecomment-140721398.
This commit is contained in:
parent
4f9a411389
commit
bca67712d0
@ -232,7 +232,7 @@ class Process
|
|||||||
$commandline = $this->commandline;
|
$commandline = $this->commandline;
|
||||||
|
|
||||||
if ('\\' === DIRECTORY_SEPARATOR && $this->enhanceWindowsCompatibility) {
|
if ('\\' === DIRECTORY_SEPARATOR && $this->enhanceWindowsCompatibility) {
|
||||||
$commandline = 'cmd /V:ON /E:ON /C "('.$commandline.')';
|
$commandline = 'cmd /V:ON /E:ON /D /C "('.$commandline.')';
|
||||||
foreach ($this->processPipes->getFiles() as $offset => $filename) {
|
foreach ($this->processPipes->getFiles() as $offset => $filename) {
|
||||||
$commandline .= ' '.$offset.'>'.ProcessUtils::escapeArgument($filename);
|
$commandline .= ' '.$offset.'>'.ProcessUtils::escapeArgument($filename);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user