Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10200 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36722 invoked by uid 1010); 1 Jun 2004 13:11:23 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 36658 invoked by uid 1007); 1 Jun 2004 13:11:23 -0000 Message-ID: <20040601131122.36657.qmail@pb1.pair.com> To: internals@lists.php.net Date: Tue, 01 Jun 2004 15:11:29 +0200 User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 80.126.99.118 Subject: Use of 'self' in static function in subclass From: bert@procurios.nl (Bert Slagter) Hi All, I have a class and a subclass, both with a static method: In this case I expect to find 'Baz' on my screen, but I get the following: "Fatal error: Call to undefined method Foo::baz() in d:\htdocs_php5\ProBase2\TRUNK\probase\libsys\test5.php on line 7". This is in PHP5 RC2. 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? Bert