Skip to content

Instantly share code, notes, and snippets.

@vanchelo
Created May 27, 2016 10:35
Show Gist options
  • Save vanchelo/023321f976caa498f7a3de455bdd57e5 to your computer and use it in GitHub Desktop.
Save vanchelo/023321f976caa498f7a3de455bdd57e5 to your computer and use it in GitHub Desktop.
<?php
register_shutdown_function(function () {
$error = error_get_last();
if ($error['type'] === E_ERROR) {
var_dump($error);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment