Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:710 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91460 invoked from network); 5 Apr 2003 07:08:08 -0000 Received: from unknown (HELO deathstar.de-punkt.de) (62.4.81.205) by pb1.pair.com with SMTP; 5 Apr 2003 07:08:08 -0000 Received: (qmail 3058 invoked by uid 511); 5 Apr 2003 07:08:01 -0000 Received: from unknown (HELO wopr) (62.225.227.28) by deathstar.de-punkt.de with SMTP; 5 Apr 2003 07:08:01 -0000 Received: from wopr [127.0.0.1] by wopr (62.225.227.28) (userid 2) with Hamster-NewsToMail-Gate (Classic Hamster Version 2.0 Build 2.0.1.3) ; Sat, 05 Apr 2003 09:09:39 +0200 Date: Sat, 05 Apr 2003 09:09:39 +0200 Organization: www.sebastian-bergmann.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: de, en 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> In-Reply-To: X-Enigmail-Version: 0.74.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime To: internals@lists.php.net Sender: admin Lines: 12 Subject: Re: [PHP-DEV] Static and non-static methods From: sebastian@php.net (Sebastian Bergmann) Message-ID: 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/