Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8029 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76923 invoked by uid 1010); 20 Feb 2004 23:23:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 76867 invoked from network); 20 Feb 2004 23:23:29 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 20 Feb 2004 23:23:29 -0000 Received: (qmail 26205 invoked from network); 20 Feb 2004 23:23:28 -0000 Received: from guardian.zend.office (HELO andi-laptop.zend.com) (10.1.1.4) by int.zend.com with SMTP; 20 Feb 2004 23:23:28 -0000 Message-ID: <5.1.0.14.2.20040221012307.02ed53c8@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sat, 21 Feb 2004 01:23:23 +0200 To: John Coggeshall , PHP Internals In-Reply-To: <1077090830.30573.1.camel@coogle.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] Static weirdness.. From: andi@zend.com (Andi Gutmans) References: <1077090830.30573.1.camel@coogle.localdomain> This isn't a bug. The whole idea of a true static method is for $this not to be defined. Andi At 02:53 18/02/2004 -0500, John Coggeshall wrote: >http://bugs.php.net/bug.php?id=27304 > >Marcus says he's brought this up before, and i think it really needs to >be addressed before PHP 5 so I'm bringing it up again. I am told that >currently we are allowing static methods to be called from an object >context because of a performance hit if we check every call, but >currently because $this is undefined regardless of context there is no >way even for the developer to check if the method was called properly. > >John > >-- >-=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=- >John Coggeshall http://www.coggeshall.org/ >The PHP Developer's Handbook http://www.php-handbook.com/ >-=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=- > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php