Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7999 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89671 invoked by uid 1010); 19 Feb 2004 15:23:57 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 89646 invoked from network); 19 Feb 2004 15:23:56 -0000 Received: from unknown (HELO shiva.mind.de) (212.42.230.204) by pb1.pair.com with SMTP; 19 Feb 2004 15:23:56 -0000 Received: from [192.168.1.105] (p508EB5F8.dip.t-dialin.net [80.142.181.248]) by shiva.mind.de (Postfix) with ESMTP id 4DB8B97B64; Thu, 19 Feb 2004 16:23:40 +0100 (CET) Date: Thu, 19 Feb 2004 16:21:50 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <189747816843.20040219162150@marcus-boerger.de> To: Pierre-Alain Joye Cc: Derick Rethans , PHP Internals In-Reply-To: <20040219161009.1efd4d18@localhost.localdomain> References: <1077090830.30573.1.camel@coogle.localdomain> <40340579.7050309@chiaraquartet.net> <40347BE5.2090405@php.net> <8745888843.20040219154942@marcus-boerger.de> <20040219155541.11451fe1@localhost.localdomain> <20040219161009.1efd4d18@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Static weirdness.. From: helly@php.net (Marcus Boerger) Hello Pierre-Alain, Thursday, February 19, 2004, 4:10:09 PM, you wrote: > On Thu, 19 Feb 2004 16:02:10 +0100 (CET) > Derick Rethans wrote: >> But it should get set in non-static methods...which doesn't happen now >> :) > $this is set in non static methods if the method is called from an > instance of the object and not set if called statically. It's exactly > the same behavior as php4. That's why I like the notice on a non static > call of a static method, cleaner and no BC as the static methods did not > exist in php4. But why the hell do you want a message, calling a static method from anywhere is absolutley fine. This of course includes calling a static method of an instance's class, however that is syntactically accomplished. I heared pear already mentioned in this thread. That cannot be of any reason with the ongoing effort to make statics work. First as i heared most of pear doesn't run on php5 and second pear of today uses php4 which didn't support statics and lots of other oo goodies. So it clear that pear has some bc problems when moving to version where all the workarounds are now solved by syntax. Best regards, Marcus mailto:helly@php.net