Skip to content

Commit bca6771

Browse files
committed
Update Process.php
Stop autoruns when shelling on Windows. Original PR was on symfony/process#9 (comment).
1 parent 4f9a411 commit bca6771

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Process/Process.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public function start($callback = null)
232232
$commandline = $this->commandline;
233233

234234
if ('\\' === DIRECTORY_SEPARATOR && $this->enhanceWindowsCompatibility) {
235-
$commandline = 'cmd /V:ON /E:ON /C "('.$commandline.')';
235+
$commandline = 'cmd /V:ON /E:ON /D /C "('.$commandline.')';
236236
foreach ($this->processPipes->getFiles() as $offset => $filename) {
237237
$commandline .= ' '.$offset.'>'.ProcessUtils::escapeArgument($filename);
238238
}

0 commit comments

Comments
 (0)