function debugPrintCallingFunction in Filebrowser 7.3
Same name and namespace in other branches
- 8 filebrowser.common.inc \debugPrintCallingFunction()
- 7.4 filebrowser.common.inc \debugPrintCallingFunction()
- 7.2 filebrowser.common.inc \debugPrintCallingFunction()
File
- ./
filebrowser.common.inc, line 752 - Misc filebrowser common functions.
Code
function debugPrintCallingFunction() {
$file = 'n/a';
$func = 'n/a';
$line = 'n/a';
$debugTrace = debug_backtrace();
if (isset($debugTrace[1])) {
$file = $debugTrace[1]['file'] ? $debugTrace[1]['file'] : 'n/a';
$line = $debugTrace[1]['line'] ? $debugTrace[1]['line'] : 'n/a';
}
if (isset($debugTrace[2])) {
$func = $debugTrace[2]['function'] ? $debugTrace[2]['function'] : 'n/a';
}
echo "<pre>\n{$file}, {$func}, {$line}\n</pre>";
}