debug)
{
$backtrace = debug_backtrace();
$calls = array();
for ($i = 1; $i < count($backtrace); $i++)
{
$call = $backtrace["$i"];
$function = (isset($call['class'])) ? $call['class'] . '.' . $call['function'] : $call['function'];
$params = '';
if (isset($call['args']))
{
$params = implode(', ', $call['args']);
}
$calls[] = sprintf('#%d : %s(%s) [%s:%s]', $i, $function, $params, $call['file'], $call['line']);
}
echo implode('
', $calls) . '
';
}
trigger_error($error, E_USER_ERROR);
}
}
/*=====================================================================*\
|| ###################################################################
|| # $HeadURL$
|| # $Id$
|| ###################################################################
\*=====================================================================*/
?>