Created
May 15, 2013 12:51
-
-
Save lumpysimon/5583782 to your computer and use it in GitHub Desktop.
PHP backtrace
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
$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