Re: PHP6 just became my worst nightmare.

From: Date: Fri, 21 Apr 2006 13:27:49 +0000
Subject: Re: PHP6 just became my worst nightmare.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-234482@lists.php.net to get a copy of this message
Jochem Maas wrote:
apparently calling a dynamic function using static syntax will cause an E_FATAL.
? That's just how OO design works... If you have a non-static method you can always have a $this-> lingering in there. Now, if you call this method with the static syntax, $this suddenly doesn't exist... Design wise trying to do something like this is just fundamentally wrong. That it was supported in PHP 5 can be considered as the bug and it was just fixed... The other way (calling a static function dynamically) ofcourse does not give any problems. Derick

« previous php.general (#234482) next »