Re: assign to $this

From: Date: Thu, 15 Apr 2004 16:35:41 +0000
Subject: Re: assign to $this
References: 1  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-1119@lists.php.net to get a copy of this message
Lorenzo Alberton wrote:
Hi guys, this will probably start another long thread (I hope not, though, since I'm still catching up with the long Easter ones...). I think it's time to face the "assign to $this" problem. I'm focusing on PEAR::Pager now, but the same applies to these packages, maybe others as well: http://pear.php.net/bugs/search.php?search_for=assign&cmd=display&status=Open The solution proposed by Toby in the QA reports won't work, as php5 will die as soon as it *sees* an assignment to $this, even if it never encounters it in its workflow, so "if()" checks are out of the game.
just as an FYI eval() would work as Derick pointed out to me. regards, Lukas Smith smith@backendmedia.com _______________________________ BackendMedia www.backendmedia.com berlin@backendmedia.com Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07

« previous php.pear.qa (#1119) next »