[core] no buffering for CLI output

This commit is contained in:
Shish 2024-01-10 21:10:42 +00:00
parent 69e9201cc6
commit 14b81dca09

View file

@ -80,6 +80,7 @@ try {
$user = _get_user();
send_event(new UserLoginEvent($user));
if (PHP_SAPI === 'cli' || PHP_SAPI == 'phpdbg') {
ob_end_flush();
send_event(new CommandEvent($argv));
} else {
send_event(new PageRequestEvent($_SERVER['REQUEST_METHOD'], _get_query()));