errors -> exceptions error_reporting( E_ALL ); // Don't use E_STRICT because it's used at parse time ## error_reporting( E_ALL | E_STRICT ); // Additionally, use .htaccess or vhost definiton containing // "php_flag display_errors On" during devel. // From http://au.php.net/manual/en/class.errorexception.php // (fixed bug with $errno in wrong place) function exception_error_handler($errno, $errstr, $errfile, $errline ) { throw new ErrorException($errstr, $errno, 0, $errfile, $errline); } set_error_handler("exception_error_handler"); ?>