Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:711 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5851 invoked from network); 5 Apr 2003 07:34:35 -0000 Received: from unknown (HELO jdi.jdimedia.nl) (212.204.192.51) by pb1.pair.com with SMTP; 5 Apr 2003 07:34:35 -0000 Received: from jdi.jdimedia.nl (jdi.jdimedia.nl [212.204.192.51]) by jdi.jdimedia.nl (8.12.4/8.12.4) with ESMTP id h357YWnv031763; Sat, 5 Apr 2003 09:34:34 +0200 Date: Sat, 5 Apr 2003 09:34:32 +0200 (CEST) X-X-Sender: derick@jdi.jdimedia.nl To: Sebastian Bergmann cc: internals@lists.php.net In-Reply-To: <200304050708.h3578Anu031564@jdi.jdimedia.nl> Message-ID: References: <20030404145236.GA32691@hyperion.gravitonic.com> <1049469044.6067.1.camel@hasele> <20030404160719.GB1558@hyperion.gravitonic.com> <1049475676.28232.615.camel@salem.intra.nobolt.net> <20030404170639.10192.qmail@pb1.pair.com> <1049476671.28232.629.camel@salem.intra.nobolt.net> <200304050708.h3578Anu031564@jdi.jdimedia.nl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Static and non-static methods From: derick@php.net (Derick Rethans) On Sat, 5 Apr 2003, Sebastian Bergmann wrote: > 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. I'd go for a notice instead, just like the other things like using an uninitialized variable. Derick -- "my other box is your windows PC" ------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ -------------------------------------------------------------------------