Skip to content

Commit

Permalink
Merge branch 'stable' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Mar 4, 2024
2 parents 43b36de + 9dba7c9 commit a2569bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Tests/IOTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,12 @@ protected function executeCliCommand($command, $workingDir = null)
2 => ['pipe', 'w'], // stderr
];

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

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

0 comments on commit a2569bf

Please sign in to comment.