From: Nicolas Boisselier Date: Tue, 1 Mar 2016 22:11:06 +0000 (+0000) Subject: Add functions debug_backtrace_* X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=a0c47bc91af43eb02c572e38f5e201c2269b9e02;p=nb.git Add functions debug_backtrace_* --- diff --git a/lib/php/functions.php b/lib/php/functions.php index debec6bc..fba3b8e0 100644 --- a/lib/php/functions.php +++ b/lib/php/functions.php @@ -105,6 +105,7 @@ function warn ($msg) { function err($msg) { $msg = is_scalar($msg) ? $msg : print_r($msg,true); + $msg = $msg.' '.nb::debug_backtrace_msg(); echo( preg_match('/ml/i',nb::get_header('Content-type')) ? '
'.$msg.'
' : "ERR: $msg").PHP_EOL; return false; }