I want you to give reasons why someone should not use the highest possible error reporting level in PHP?
Ways to set highest level:
PHP < 5.4:
error_reporting(E_ALL | E_STRICT);
PHP >= 5.4:
error_reporting(E_ALL);
PHP all versions (as recommended for config files):
error_reporting(2147483647);
PHP all versions (my config, -1 will contain all errors and is easy to remember)
error_reporting(-1);
My experiences:
- there is no reason for low reporting levels
- never used the error control operator
- use to convert all errors to exceptions via set_error_handler and customized exception class to overwrite file and line