For example this code
<?php
if (some_condition()) {
header('Location: /');
exit();
}
// do a lot of things...
On classic PHP FPM previous code works fine. But on PHP+Swoole, we ge this error
swoole exit {"exception":"[object] (Swoole\\ExitException(code: 0): swoole exit at
The error is understandable. But, what is the easiest way to migrate it?