Re: Inheritance and Static Methods

From: Date: Tue, 08 Jul 2003 21:41:23 +0000
Subject: Re: Inheritance and Static Methods
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-3314@lists.php.net to get a copy of this message
On Tue, 8 Jul 2003 23:35:14 +0200 marcus.boerger@t-online.de (Marcus Börger) wrote: [snip] > - the method is defined in class a so pre is correct > - backtrace @[0] sees the top caller class that's b that's correct > - get_class($var) sees the class of the variable. In you static case that is > NULL which doesn't have a class and in your object case that's b. Therfore > this is also correct. > > Everything show is correct so far. The only problem is that test_backtrace() > could be called static without being defined as such. > [snip] Thanks for your response. I wasn't disputing the current behaviour, only wondering if there is / is planned a function specifically for doing what I did with debug_backtrace() in a static method. Using debug_backtrace() seems hackish and slow. -- Phil Dier gett communications <http://www.gettcomm.com/> gettlabs, inc. <http://www.gettlabs.com/>

« previous php.internals (#3314) next »