Re: non static function called as static one

From: Date: Wed, 11 Mar 2009 14:52:42 +0000
Subject: Re: non static function called as static one
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-289858@lists.php.net to get a copy of this message
Hi Jochem, > > 2/ (or/and) Raise a warning or an error if a non static function is > called > > as a static one > > develop with error_reporting set to E_ALL | E_STRICT, then you'll get a big > fat > warning about it Yes, that's what I'm using right now. Although, that's not the highlighted problem. > > [...] > > the pragmatic solution is to not call non-static functions using > static syntax. Well, this is the answer I didn't want :) Thank you for your feedback ! Olivier

« previous php.general (#289858) next »