What is best practice when setting error reporting on development and production applications? At the moment I have the following:
// development
error_reporting(E_ALL);
// production
ini_set('display_errors', 0);
ini_set('log_errors', 1);
error_reporting(E_ERROR | E_WARNING | E_PARSE);
display_errors
in production – Rickirickiedisplay_errors
off completely in any environment. Sometimes an error will cause headers to be sent too early, borking your script completely! Tail the log! – Pastorship