On Tue, 8 Jul 2003 23:35:14 +0200
[EMAIL PROTECTED] (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/>

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to