Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10201 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55080 invoked by uid 1010); 1 Jun 2004 13:17:46 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54751 invoked from network); 1 Jun 2004 13:17:43 -0000 Received: from unknown (HELO rot2.de) (217.160.191.196) by pb1.pair.com with SMTP; 1 Jun 2004 13:17:43 -0000 Received: from zephir (ares.metrix.de [195.20.242.235]) by rot2.de (Postfix) with ESMTP id 50FBA2CEAF2; Tue, 1 Jun 2004 15:10:00 +0200 (CEST) To: "'Bert Slagter'" , Date: Tue, 1 Jun 2004 15:21:48 +0200 Message-ID: <007801c447db$649d5920$9e46a8c0@zephir> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 Importance: Normal In-Reply-To: <20040601131122.36657.qmail@pb1.pair.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Subject: RE: [PHP-DEV] Use of 'self' in static function in subclass From: schst@php-tools.net ("Stephan Schmidt") References: <20040601131122.36657.qmail@pb1.pair.com> Hi, > Somehow this behaviour seems logical, on the other hand I don't think > it's desired. I think that 'self' should point to the current class, > even if the static method resides in a parent class. > > Is this 'self'-behaviour intended? Furthermore this renders the template-method pattern quite useless, so IMHO it should be changed. Stephan