@@ -47,16 +47,16 @@ |
||
47 | 47 | } |
48 | 48 | |
49 | 49 | // Loop on process until it exits normally. |
50 | - $stdOut = ""; |
|
51 | - $stdErr = ""; |
|
52 | - do { |
|
53 | - // Consume output streams while the process runs. The buffer will block process updates when full |
|
54 | - $status = proc_get_status($process); |
|
55 | - $stdOut .= stream_get_contents($pipes[1]); |
|
56 | - $stdErr .= stream_get_contents($pipes[2]); |
|
57 | - } while ($status && $status['running']); |
|
50 | + $stdOut = ""; |
|
51 | + $stdErr = ""; |
|
52 | + do { |
|
53 | + // Consume output streams while the process runs. The buffer will block process updates when full |
|
54 | + $status = proc_get_status($process); |
|
55 | + $stdOut .= stream_get_contents($pipes[1]); |
|
56 | + $stdErr .= stream_get_contents($pipes[2]); |
|
57 | + } while ($status && $status['running']); |
|
58 | 58 | |
59 | - $code = $status['exitcode'] ?? -1; |
|
59 | + $code = $status['exitcode'] ?? -1; |
|
60 | 60 | |
61 | 61 | // make sure all pipes are closed before calling proc_close |
62 | 62 | foreach ($pipes as $index => $pipe) { |
@@ -56,7 +56,7 @@ |
||
56 | 56 | $stdErr .= stream_get_contents($pipes[2]); |
57 | 57 | } while ($status && $status['running']); |
58 | 58 | |
59 | - $code = $status['exitcode'] ?? -1; |
|
59 | + $code = $status['exitcode'] ?? -1; |
|
60 | 60 | |
61 | 61 | // make sure all pipes are closed before calling proc_close |
62 | 62 | foreach ($pipes as $index => $pipe) { |