Lars B. Jensen wrote:
Is there any way, I from one function can identify which other
function called it, without parameter passing the name manually ?
I still question whether its correct to design a function which
requires this. I thought the idea of encapsulating code inside a
function is that its non-dependent/black-boxed.... still for every
rule there is an exception!
Need it for my "identify why the hell this error occured, send email to
the admins with full debug, server variables, time, pop that into the
errorhandling database for cross referencing if it happened before".
damn good reason to use debug_backtrace() if you ask me :-)
Practically, yesterday, we spend a few hours tracing a special error
occuring extremely seldom and ended up making some crappy debugging on a
livesite.
Please don't post twice in an hour if you haven't yet received your
answer. With that in mind, I have an answer for you. :-)
maybe Lars thought his post had disappeared into /dev/null, not
altogether strange considering the fluctuating time delays in posts
being sent out! then maybe he's an impatient s.o.b ;-)
Or maybe Lars has multiple email accounts, and realized he was sending
from the wrong one forgetting he had authorized it beforehand.
I'm guessing Lars has multiple email accounts. ;-)
/ Lars
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php