JosephLenton / PHP-Error

Better error reporting for PHP, and prettier too!
1.35k stars 151 forks source link

Allow safe use of PHP-Error in production env. by handling display_errors properly #59

Open panrafal opened 11 years ago

panrafal commented 11 years ago

If display_errors is false, error handling will work normally, but no broken output or error message will be displayed. The page will have 500 status code.

Additionaly, you can provide "error_page" option, with an user-friendly html or php file to print in case of an error.

This way you get across environments: