Created
January 23, 2013 08:31
-
-
Save jayzeng/4603157 to your computer and use it in GitHub Desktop.
global error handler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// custom error handler to suppress errors | |
function exception_error_handler($errno, $errstr, $errfile, $errline ) { | |
return ''; | |
} | |
set_error_handler('exception_error_handler'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment