1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-22 06:42:41 +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:
epriestley 2011-07-16 08:09:47 -07:00
parent 8150fdf044
commit 2d50e08ee6

View file

@ -26,3 +26,9 @@ if (!@constant('__LIBPHUTIL__')) {
}
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();
}