Posted by Rik on 08/10/07 20:14
On Fri, 10 Aug 2007 22:08:38 +0200, laredotornado@zipmail.com
<laredotornado@zipmail.com> wrote:
> Hi,
>
> I'm using PHP 4.4.4 witih Apache 2 on Linux. I recently discovered
> the debug_backtrace() statement. However, when I run the command,
>
> var_dump(debug_backtrace());
>
> what is printed out is a mess. See below. What is a cleaner way of
> printing out stack traces. I like the way Java does it. Anyway to
> emulate that?
No idea how Java does it. In PHP 5 (you should upgrade anyway) we have
debug_print_backtrace(). Easily recreated using some loop &
debug_backtrace() itself I'd think. It's also in PHP_Compat:
<http://pear.php.net/manual/en/package.php.php-compat.components.php>
--
Rik Wasmus
[Back to original message]
|