Re: Static and non-static methods

From: Date: Sat, 05 Apr 2003 07:09:39 +0000
Subject: Re: Static and non-static methods
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-710@lists.php.net to get a copy of this message
Rasmus Lerdorf wrote: > Along the same lines, why do you care if you can call a static method > in a class without declaring it static? A warning would be nice. After all declaring a static method explicitly static using the appropriate keyword improves performance (a bit) because $this doesn't have to be initialized etc. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

« previous php.internals (#710) next »