Posted by gosha bine on 05/14/07 08:14
On 14.05.2007 02:06 Jon Slaughter wrote:
> Is there anything in php that lets me trace the call stack or do I have to
> implement something like that on my own?
>
> e.g., I could insert somethign like $callstack[sizeof($callstack)] =
> __FUNCTION__; at the top of every function and
> unset($callstack[sizeof($callstack)-1]);
>
> So that I could trace the to code to where an error occured and know the
> function "path" that created it. Of course its probalby not worth it if I
> have to clutter up all the code very every return statement will need to
> have that coupled with it.
>
> Thanks,
> Jon
>
>
hi, look for debug_backtrace in manual
--
gosha bine
extended php parser ~ http://code.google.com/p/pihipi
blok ~ http://www.tagarga.com/blok
Navigation:
[Reply to this message]
|