Skip to content

Instantly share code, notes, and snippets.

@lumpysimon
Created May 15, 2013 12:51
Show Gist options
  • Save lumpysimon/5583782 to your computer and use it in GitHub Desktop.
Save lumpysimon/5583782 to your computer and use it in GitHub Desktop.
PHP backtrace
$trace=debug_backtrace();
$caller=array_shift($trace);
error_log( "Lumpy: mail debug function " . print_r( $trace[0]['function'] , true ) );
error_log( "Lumpy: mail debug class " . print_r( $caller['class'] , true ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment