Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7992 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32021 invoked by uid 1010); 19 Feb 2004 14:55:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 31949 invoked from network); 19 Feb 2004 14:55:43 -0000 Received: from unknown (HELO smtp1.netcologne.de) (194.8.194.112) by pb1.pair.com with SMTP; 19 Feb 2004 14:55:43 -0000 Received: from localhost.localdomain (xdsl-213-196-211-23.netcologne.de [213.196.211.23]) by smtp1.netcologne.de (Postfix) with SMTP id 9265F38970; Thu, 19 Feb 2004 15:55:40 +0100 (MET) Date: Thu, 19 Feb 2004 15:55:41 +0100 To: Marcus Boerger Cc: Hartmut Holzgraefe , Greg Beaver , hartmut@php-groupies.de, John Coggeshall , PHP Internals Message-ID: <20040219155541.11451fe1@localhost.localdomain> In-Reply-To: <8745888843.20040219154942@marcus-boerger.de> References: <1077090830.30573.1.camel@coogle.localdomain> <40340579.7050309@chiaraquartet.net> <40347BE5.2090405@php.net> <8745888843.20040219154942@marcus-boerger.de> Organization: Freelancer X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Static weirdness.. From: paj@pearfr.org (Pierre-Alain Joye) On Thu, 19 Feb 2004 15:49:42 +0100 Marcus Boerger wrote: > A static and a non static member function are two absolute completley > different things. Anyway calling a static method from an instance as > $instance->staticmethod() or $instance::staticmethod() should be > allowed. I guess the latter is what Lukas and Hartmut meant. I discussed with Lukas what he meant by "I agree". A lot of misunderstanding in this thread :) One sure thing, $this should not be set in static methods. I do not care that much but I like to see a notice in E_STRICT mode if a method explicitly declared as static is called from an instance of the object. About this topic, see my other post. It's a patch that add fn_flags (method flags like public, private) to the getMethod() result. pierre