From f3b292f2eaf39a5383b7f4928061d73457b3d9ec Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 10 Jan 2024 23:01:01 +0000 Subject: [PATCH] [core] also flush output for cli --- index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/index.php b/index.php index 659083b2..88018fbb 100644 --- a/index.php +++ b/index.php @@ -81,6 +81,7 @@ try { send_event(new UserLoginEvent($user)); if (PHP_SAPI === 'cli' || PHP_SAPI == 'phpdbg') { ob_end_flush(); + ob_implicit_flush(true); send_event(new CommandEvent($argv)); } else { send_event(new PageRequestEvent($_SERVER['REQUEST_METHOD'], _get_query()));