Re: Re: Fw: Identify which function called another

From: Date: Thu, 13 Jan 2005 05:42:09 +0000
Subject: Re: Re: Fw: Identify which function called another
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-206277@lists.php.net to get a copy of this message
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". 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. / Lars

« previous php.general (#206277) next »