Re: how to get calling method identity?

From: Date: Thu, 04 Jul 2002 21:56:51 +0000
Subject: Re: how to get calling method identity?
Groups: php.general 
Request: Send a blank email to php-general+get-105523@lists.php.net to get a copy of this message
>function utility() { >} > >Class a { > function some_method() { > utility(); > } >} > >now, how can utility know that it's being called by a::some_method()? In other words, "How can I walk the 'call-stack' of functions/methods?" The answer is "You can't." (last I heard). IDEs such as the Zend IDE http://zend.com/ and Active State's Komodo (sp?) do it, but I think they work by sort of swapping out the normal Zend Engine for one that keeps track of more stuff and has more hooks in it to do this... Sorry. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#105523) next »