Re: [PHP] Re: Fw: Identify which function called another

2005-01-13 Thread Lars B. Jensen
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/bla

Re: [PHP] Re: Fw: Identify which function called another

2005-01-13 Thread Jochem Maas
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

Re: [PHP] Re: Fw: Identify which function called another

2005-01-12 Thread Jochem Maas
Ben Ramsey wrote: 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

[PHP] Re: Fw: Identify which function called another

2005-01-12 Thread Ben Ramsey
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 ? 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. :-) Use debug_backtrace()