Created
February 2, 2016 10:27
-
-
Save lode/6592e620c6186c34e327 to your computer and use it in GitHub Desktop.
Error handling
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
<?php | |
ini_set('display_startup_errors', 1); | |
ini_set('display_errors', 1); | |
error_reporting(-1); | |
echo 'start'.PHP_EOL; | |
@file('foo'); | |
echo var_export(error_get_last(), true).PHP_EOL; | |
echo 'end'.PHP_EOL; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment