On Thu, 19 Feb 2004 15:49:42 +0100
Marcus Boerger <[EMAIL PROTECTED]> 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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to