Re: reference caller object

From: Date: Thu, 17 Sep 2009 15:28:52 +0000
Subject: Re: reference caller object
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-45592@lists.php.net to get a copy of this message
Sebastian Bergmann wrote:
Chris Trahey schrieb:
using it is current-implimentation specific (i.e. developer needs to know the format of the array returned)
And adding another language feature is not something the developer needs to know?
I think the concern is the overhead of capturing the entire stack when only a specific part is needed. A simple solution might be something like the following:
    debug_backtrace_capture( $level, $field=all, $provide_object=true );
$provide_object would only be necessary with the "all" option for $field, otherwise if the field was set to "object" then it would be implied. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP

« previous php.internals (#45592) next »