Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64647 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96551 invoked from network); 7 Jan 2013 19:07:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jan 2013 19:07:27 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:38431] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 50/44-08897-DEC1BE05 for ; Mon, 07 Jan 2013 14:07:27 -0500 Received: from localhost (xdebug.org [127.0.0.1]) by xdebug.org (Postfix) with ESMTPS id ABD92DE13D; Mon, 7 Jan 2013 19:07:22 +0000 (GMT) Date: Mon, 7 Jan 2013 19:07:22 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: nathan@starin.biz cc: internals@lists.php.net In-Reply-To: <105701cded05$ab265d50$017317f0$@starin.biz> Message-ID: References: <102501cdecf9$e427d540$ac777fc0$@starin.biz> <105701cded05$ab265d50$017317f0$@starin.biz> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: RE: [PHP-DEV] new Class ReflectionZVal From: derick@php.net (Derick Rethans) On Mon, 7 Jan 2013, nathan@starin.biz wrote: > From: Derick Rethans [mailto:derick@php.net] > Sent: Monday, January 07, 2013 11:22 AM > > > On Mon, 7 Jan 2013, nathan@starin.biz wrote: > > > > > function __construct(&$variable); > > > > That's inherently flawed, as passing a variable in can modify it's > > refcount and is_ref states. This is why Xdebug's equivalent wants a > > string > > with the variable name instead: > > http://xdebug.org/docs/all_functions#xdebug_debug_zval > > I am quite familiar with this issue. The idea I was thinking to solve that > issue is to maybe pass by-reference to the __construct. It won't, as you might actually end up splitting the reference. You *cannot* pass in a variable, either by-ref or by-value for this to work. > When I was drafting this first email I had it by-ref, but opted out of > it because I didn't have a way to get the value of the reference, but > reviewing I added the " function getValueReflection();" functions > which should make it possible to use by-reference now and obtain the > info to the reference of the reference. There is no such thing as a reference of a reference. cheers, Derick -- http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug Posted with an email client that doesn't mangle email: alpine