<?php // Error handling goodness // // Will catch non-fatal errors, dump the error trace, and prevent process death // function error_handler_exception($errno, $errstr, $errfile, $errline ) { throw new ErrorException($errstr, 0, $errno, $errfile, $errline); } set_error_handler('error_handler_exception', E_ERROR | E_WARN | E_USER_ERROR | E_RECOVERABLE_ERROR); ?>