From bca67712d0013712a8fa8f986273652bb2bc86d9 Mon Sep 17 00:00:00 2001 From: Richard Quadling Date: Wed, 16 Sep 2015 14:19:29 +0100 Subject: [PATCH] Update Process.php Stop autoruns when shelling on Windows. Original PR was on https://github.com/symfony/Process/pull/9#issuecomment-140721398. --- src/Symfony/Component/Process/Process.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Process/Process.php b/src/Symfony/Component/Process/Process.php index 8c259f5c1f..61f37ba599 100644 --- a/src/Symfony/Component/Process/Process.php +++ b/src/Symfony/Component/Process/Process.php @@ -232,7 +232,7 @@ class Process $commandline = $this->commandline; 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) { $commandline .= ' '.$offset.'>'.ProcessUtils::escapeArgument($filename); }