Created
October 15, 2014 07:53
-
-
Save desarrolla2/c6dcac11c21c46ce39d9 to your computer and use it in GitHub Desktop.
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 | |
ini_set('display_errors',0); | |
register_shutdown_function('shutdown'); | |
$obj = new stdClass(); | |
$obj->method(); | |
function shutdown() | |
{ | |
if(!is_null($e = error_get_last())) | |
{ | |
var_dump($e); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment