We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53893c4 commit 7270a8bCopy full SHA for 7270a8b
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