Re: Get name of extending class with static method call (PHP5)
| From: | Torsten Roehr | Date: | Wed, 12 Jan 2005 19:09:31 +0000 |
| Subject: | Re: Get name of extending class with static method call (PHP5) | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-14364@lists.php.net to get a copy of this message | ||
"Johannes Schlueter" <johannes@php.net> wrote in message
news:20050112161637.86918.qmail@pb1.pair.com...
> > With PHP4 it was possible to get the correct class name with
> > debug_backtrace(). This behaviour has been changed in PHP5.
> > How can I get the name of the extending class that invoked the method in
> > drive()?
>
> There was a short discussion on this on this list, too some month ago. The
> result was that there is (at least currently) no way to get the right
> class.
That's what I found out as well while searching the archives. Any more
ideas?
Something so straightforward and fundamental should be possible!?!
Best regards, Torsten Roehr