Re: Re: Static weirdness..
| From: | Greg Beaver | Date: | Thu, 19 Feb 2004 15:11:58 +0000 |
| Subject: | Re: Re: Static weirdness.. | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-7997@lists.php.net to get a copy of this message | ||
Pierre-Alain Joye wrote:
One sure thing, $this should not be set in static methods. I completely agree - the headache of fixing PEAR's "kind of static" methods is really annoying, and not really fixable. A method should either be static, non-static, or split into two methods, one that is static, and one that is not. Language-level enforcement of not allowing $this in static methods is very nice.Grge