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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]

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

Reply via email to