Re: Static weirdness..

From: Date: Fri, 20 Feb 2004 23:23:23 +0000
Subject: Re: Static weirdness..
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-8029@lists.php.net to get a copy of this message
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


« previous php.internals (#8029) next »