Skip to content

Commit c4bb79a

Browse files
committed
minor symfony#15817 [Process] Stopped Autoruns when shelling on windows (rquadling)
This PR was merged into the 2.3 branch. Discussion ---------- [Process] Stopped Autoruns when shelling on windows | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | | Fixed tickets | | License | MIT | Doc PR | Stop autoruns when shelling on Windows. Original PR was on symfony/process#9 (comment). Commits ------- bca6771 Update Process.php
2 parents b783e40 + bca6771 commit c4bb79a

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)