mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 14:52:40 +01:00
Flush output buffers before running 'arc'
Summary: See D589. Some environments configure output buffering with a prepend script. This is rather silly, but we can at least recover from it. Test Plan: Started multiple output buffers with ob_start() and then used phutil_console_confirm() to create a prompt. Verified that 'arc' was broken under output buffering prior to the patch, but now works correctly. Reviewed By: dreuss
This commit is contained in:
parent
8150fdf044
commit
2d50e08ee6
1 changed files with 6 additions and 0 deletions
|
@ -26,3 +26,9 @@ if (!@constant('__LIBPHUTIL__')) {
|
||||||
}
|
}
|
||||||
|
|
||||||
phutil_load_library(dirname(__FILE__).'/../src/');
|
phutil_load_library(dirname(__FILE__).'/../src/');
|
||||||
|
|
||||||
|
// There may be some kind of auto-prepend script configured which starts an
|
||||||
|
// output buffer. Discard any such output buffers.
|
||||||
|
while (ob_get_level() > 0) {
|
||||||
|
ob_end_clean();
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue