Re: Re: Static weirdness..

From: Date: Thu, 19 Feb 2004 15:10:09 +0000
Subject: Re: Re: Static weirdness..
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-7996@lists.php.net to get a copy of this message
On Thu, 19 Feb 2004 16:02:10 +0100 (CET) Derick Rethans <derick@php.net> 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. See the tests script in the beginning of this thread. hth pierre

« previous php.internals (#7996) next »