Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7996 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63940 invoked by uid 1010); 19 Feb 2004 15:10:11 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 63911 invoked from network); 19 Feb 2004 15:10:11 -0000 Received: from unknown (HELO smtp1.netcologne.de) (194.8.194.112) by pb1.pair.com with SMTP; 19 Feb 2004 15:10:11 -0000 Received: from localhost.localdomain (xdsl-213-196-211-23.netcologne.de [213.196.211.23]) by smtp1.netcologne.de (Postfix) with SMTP id A686A38CEB; Thu, 19 Feb 2004 16:10:08 +0100 (MET) Date: Thu, 19 Feb 2004 16:10:09 +0100 To: Derick Rethans Cc: PHP Internals Message-ID: <20040219161009.1efd4d18@localhost.localdomain> In-Reply-To: References: <1077090830.30573.1.camel@coogle.localdomain> <40340579.7050309@chiaraquartet.net> <40347BE5.2090405@php.net> <8745888843.20040219154942@marcus-boerger.de> <20040219155541.11451fe1@localhost.localdomain> 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 16:02:10 +0100 (CET) Derick Rethans 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