I've seen this question asked and answered a few times but none of the solutions work for me. Also Zend Framework might complicate things here. I know the best solution is to fix the errors, but is there really no best practice to avoid a white page? I mean my code is pretty damn perfect, even tested sometimes, but nobody is perfect. I've tried:
function exception_error_handler($errno, $errstr, $errfile, $errline ) {
throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
}
set_error_handler("exception_error_handler");
also
register_shutdown_function('forward_fatal');
function forward_fatal(){
header("Location: index.html");
}
Still getting white page on fatal exception.