File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed
dist-persist/wbstack/src/Internal
dist/wbstack/src/Internal Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public function execute() {
1818 // Run update.php
1919 $ domain = $ GLOBALS [WBSTACK_INFO_GLOBAL ]->requestDomain ;
2020 $ mwPath = realpath ( __DIR__ . '/../../../ ' );
21- $ cmd = 'WBS_DOMAIN= ' . $ domain . ' php ' . $ mwPath . '/maintenance/update.php --quick ' ;
21+ $ cmd = 'WBS_DOMAIN= ' . $ domain . ' php ' . $ mwPath . '/maintenance/update.php --quick 2>&1 ' ;
2222
2323 $ stdout = fopen ( 'php://stdout ' , 'w ' );
2424
@@ -42,12 +42,6 @@ public function execute() {
4242 array_push ( $ out , $ line );
4343 }
4444
45- while ( $ line = fgets ( $ stderrProc ) ) {
46- $ line = rtrim ( $ line );
47- fwrite ( $ stdout , $ line . PHP_EOL ); // effectively redirecting stdErr to stdOut
48- array_push ( $ out , $ line );
49- }
50-
5145 fclose ( $ stdinProc );
5246 fclose ( $ stdoutProc );
5347 fclose ( $ stderrProc );
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public function execute() {
1818 // Run update.php
1919 $ domain = $ GLOBALS [WBSTACK_INFO_GLOBAL ]->requestDomain ;
2020 $ mwPath = realpath ( __DIR__ . '/../../../ ' );
21- $ cmd = 'WBS_DOMAIN= ' . $ domain . ' php ' . $ mwPath . '/maintenance/update.php --quick ' ;
21+ $ cmd = 'WBS_DOMAIN= ' . $ domain . ' php ' . $ mwPath . '/maintenance/update.php --quick 2>&1 ' ;
2222
2323 $ stdout = fopen ( 'php://stdout ' , 'w ' );
2424
@@ -42,12 +42,6 @@ public function execute() {
4242 array_push ( $ out , $ line );
4343 }
4444
45- while ( $ line = fgets ( $ stderrProc ) ) {
46- $ line = rtrim ( $ line );
47- fwrite ( $ stdout , $ line . PHP_EOL ); // effectively redirecting stdErr to stdOut
48- array_push ( $ out , $ line );
49- }
50-
5145 fclose ( $ stdinProc );
5246 fclose ( $ stdoutProc );
5347 fclose ( $ stderrProc );
You can’t perform that action at this time.
0 commit comments