Re: Function Stack
| From: | Michael Sims | Date: | Sat, 01 Feb 2003 14:30:31 +0000 |
| Subject: | Re: Function Stack | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-133881@lists.php.net to get a copy of this message | ||
On Sat, 1 Feb 2003 07:08:05 -0500, you wrote:
>Is there any way to access the Function Stack from php?
Starting with PHP 4.3.0 you can use debug_backtrace(), which returns
an array of caller stack information. You might want to build a
wrapper around it which formats the information the way you want. I
use it in my custom error handler and it's a lifesaver!