We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2dec0b commit f5973c8Copy full SHA for f5973c8
run-tests.php
@@ -1229,10 +1229,10 @@ function system_with_timeout(
1229
}
1230
1231
if ($n > 0) {
1232
- if ($captureStdOut && isset($r[1])) {
1233
- $line = fread($r[1], 8192);
1234
- } elseif ($captureStdErr && isset($r[2])) {
1235
- $line = fread($r[2], 8192);
+ if ($captureStdOut && \in_array($pipes[1], $r)) {
+ $line = fread($pipes[1], 8192);
+ } elseif ($captureStdErr && in_array($pipes[2], $r)) {
+ $line = fread($pipes[2], 8192);
1236
} else {
1237
$line = '';
1238
0 commit comments