| @@ 100-103 (lines=4) @@ | ||
| 97 | } |
|
| 98 | ||
| 99 | // Read prog output |
|
| 100 | if (isset($pipes[1]) && $pipes[1]) { |
|
| 101 | $out = stream_get_contents($pipes[1], -1); |
|
| 102 | $allOut .= $out; |
|
| 103 | } |
|
| 104 | ||
| 105 | // Read prog errors |
|
| 106 | if (isset($pipes[2]) && $pipes[2]) { |
|
| @@ 106-109 (lines=4) @@ | ||
| 103 | } |
|
| 104 | ||
| 105 | // Read prog errors |
|
| 106 | if (isset($pipes[2]) && $pipes[2]) { |
|
| 107 | $outErr = stream_get_contents($pipes[2], -1); |
|
| 108 | $allOutErr .= $outErr; |
|
| 109 | } |
|
| 110 | ||
| 111 | $i++; |
|
| 112 | } while ($procStatus['running']); |
|