(PHP 3, PHP 4 )
error_reporting -- set which PHP errors are reported
Description
int 
error_reporting ( [int level])
     Sets PHP's error reporting level and returns the old level.  The
     error reporting level is either a bitmask, or named constant. Using
     named constants is strongly encouraged to ensure compatibility for
     future versions. As error levels are added, the range of integers
     increases, so older integer-based error levels will not always
     behave as expected.
     
| Example 1. Error Integer changes | error_reporting (55);   // PHP 3 equivalent to E_ALL ^ E_NOTICE
/* ...in PHP 4, '55' would mean (E_ERROR | E_WARNING | E_PARSE |
E_CORE_ERROR | E_CORE_WARNING) */
error_reporting (2039); // PHP 4 equivalent to E_ALL ^ E_NOTICE
error_reporting (E_ALL ^ E_NOTICE); // The same in both PHP 3 and 4 | 
 | 
     Follow the links of the constants to get their meanings:
     
Table 1. error_reporting() bit values
     
| Example 2. error_reporting() examples | // Turn off all error reporting
error_reporting(0);
// Report simple running errors
error_reporting  (E_ERROR | E_WARNING | E_PARSE);
// Reporting E_NOTICE can be good too (to report uninitialized 
// variables or catch variable name misspellings)
error_reporting (E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
// Report all PHP errors (use bitwise  63  in PHP 3)
error_reporting (E_ALL); | 
 |