Skip to content

Commit a2569bf

Browse files
committed
Merge branch 'stable' into develop
2 parents 43b36de + 9dba7c9 commit a2569bf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Tests/IOTestCase.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,12 @@ protected function executeCliCommand($command, $workingDir = null)
5252
2 => ['pipe', 'w'], // stderr
5353
];
5454

55-
$process = \proc_open($command, $descriptorspec, $pipes, $workingDir);
55+
$options = null;
56+
if (stripos(PHP_OS, 'WIN') === 0) {
57+
$options = ['bypass_shell' => true];
58+
}
5659

60+
$process = \proc_open($command, $descriptorspec, $pipes, $workingDir, null, $options);
5761
if (\is_resource($process) === false) {
5862
throw new RuntimeException('Could not obtain a resource with proc_open() to execute the command.');
5963
}

0 commit comments

Comments
 (0)