Created
August 12, 2015 14:13
-
-
Save wienczny/c6dc5440dd627836d8d0 to your computer and use it in GitHub Desktop.
PHP ALL Errors
This file contains 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
ini_set('display_errors', 1); | |
ini_set('error_reporting', E_ERROR); | |
register_shutdown_function("fatal_handler"); | |
function fatal_handler() { | |
$error = error_get_last(); | |
echo("<pre>"); | |
print_r($error); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment