Re: $this manipulation in the constructor

From: Date: Wed, 25 Feb 2004 06:05:26 +0000
Subject: Re: $this manipulation in the constructor
References: 1  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-639@lists.php.net to get a copy of this message
Lorenzo Alberton wrote:
Hi Toby, Hi Lorenzo!
by chance, did you tried the code below? It has two little problems: #1) [minor] the if() evaluates to true on 5.0.0RC-dev #2) [bigger] the php parser will stop as soon as it 'sees' the assignment to $this, not just in the case it encounters it on the execution flow... hence, the script will die anyway :-( Oooohh... I tried it... but maybe a bit to sloppy. I guess we/I should post a correction.
Regards, Toby -- Tobias Schlitt a passion for php http://www.schlitt.info

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