> And adding another language feature is not something the developer needs > to know?
Once implimented, it would be obvious that a constant like "caller" always means caller. It is not obvious that the caller object is located in the "object" key of the second element of the array returned by debug_backtrace(). If implimented in a global function (such as in my first message), it's the third element. That's the kind of thing that may change in versions of PHP, and should not be used for application logic. It would be safe to assume that a reference to "caller" will work in future versions of PHP, even if the way we generate the reference changes. In fact, isn't there a flag in zend_builtin_functions.c to provide the object? It's like it's asking to be changed in some future version of PHP, and (to me at least), makes relying on debug_backtrace() for access to the object a bad idea. Chris Trahey Web Applications Developer Database Administrator CSISD [Technology] Sebastian Bergmann <s...@sebastian-bergmann.de> writes: >Chris Trahey schrieb: >> using it is current-implimentation specific (i.e. developer needs to >> know the format of the array returned) > > > >-- >Sebastian Bergmann Co-Founder and Principal Consultant >http://sebastian-bergmann.de/ http://thePHP.cc/ > > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php >