Skip to content

Instantly share code, notes, and snippets.

@pulse00
Created December 6, 2010 12:26
Show Gist options
  • Save pulse00/730216 to your computer and use it in GitHub Desktop.
Save pulse00/730216 to your computer and use it in GitHub Desktop.
<?php
register_shutdown_function('shutdownFunction');
function shutDownFunction() {
$error = error_get_last();
if ($error['type'] == 1) {
var_dump(debug_backtrace());
}
}
include 'someclass.php';
$test = new Test();
$test->foo();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment