Skip to content

Commit

Permalink
[Process] Fix #10681, process are failing on Windows Server 2003
Browse files Browse the repository at this point in the history
  • Loading branch information
romainneutron committed Apr 17, 2014
1 parent 76170fc commit 46fdfbb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Symfony/Component/Process/Process.php
Expand Up @@ -233,10 +233,11 @@ public function start($callback = null)
$commandline = $this->commandline;

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) {
$commandline .= ' '.$offset.'>'.$filename;
$commandline .= ' '.$offset.'>'.ProcessUtils::escapeArgument($filename);
}
$commandline .= '"';

if (!isset($this->options['bypass_shell'])) {
$this->options['bypass_shell'] = true;
Expand Down

0 comments on commit 46fdfbb

Please sign in to comment.