Re: Re: Static weirdness..

From: Date: Thu, 19 Feb 2004 14:55:41 +0000
Subject: Re: Re: Static weirdness..
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-7992@lists.php.net to get a copy of this message
On Thu, 19 Feb 2004 15:49:42 +0100 Marcus Boerger <helly@php.net> 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

« previous php.internals (#7992) next »