Esempio n. 1
0
function cleanup()
{
    $err = error_get_last();
    if ($err !== null && $err["type"] == E_ERROR) {
        ob_end_clean();
        $response = new ErrorResponse();
        $response->render();
    }
}