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($callsta ck)] =
__FUNCTION__; at the top of every function and
unset($callstac k[sizeof($callsta ck)-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
implement something like that on my own?
e.g., I could insert somethign like $callstack[sizeof($callsta ck)] =
__FUNCTION__; at the top of every function and
unset($callstac k[sizeof($callsta ck)-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
Comment