Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23733 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99838 invoked by uid 1010); 27 May 2006 21:58:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 99823 invoked from network); 27 May 2006 21:58:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 May 2006 21:58:59 -0000 X-PHP-List-Original-Sender: danielc@analysisandsolutions.com X-Host-Fingerprint: 166.84.1.74 mail3.panix.com Received: from ([166.84.1.74:51556] helo=mail3.panix.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id C2/95-17316-2ABC8744 for ; Sat, 27 May 2006 17:58:58 -0400 Received: from panix5.panix.com (panix5.panix.com [166.84.1.5]) by mail3.panix.com (Postfix) with ESMTP id 342E313A868 for ; Sat, 27 May 2006 17:58:55 -0400 (EDT) Received: (from analysis@localhost) by panix5.panix.com (8.11.6p3/8.8.8/PanixN1.1) id k4RLwtX20444 for internals@lists.php.net; Sat, 27 May 2006 17:58:55 -0400 (EDT) Date: Sat, 27 May 2006 17:58:55 -0400 To: PHP Internals List Message-ID: <20060527215855.GA8263@panix.com> References: <138663365.20060514205903@marcus-boerger.de> <038d01c676f8$ab9b3380$6602a8c0@foxbox> <44685D24.2000801@php.net> <1147708994.14148.23.camel@notebook.local> <16710545416.20060515202714@marcus-boerger.de> <1147721541.14148.47.camel@notebook.local> <4468DB43.1020005@emini.dk> <7.0.1.0.2.20060515194051.02b32ef8@zend.com> <1148496966.19173.79.camel@notebook.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1148496966.19173.79.camel@notebook.local> User-Agent: Mutt/1.5.10i Subject: Re: [PHP-DEV] fatal static call in php 6.0? From: danielc@analysisandsolutions.com (Daniel Convissor) On Wed, May 24, 2006 at 11:56:06AM -0700, Todd Ruth wrote: > class TheParent { > public $x = 3; > } > class UglyUncle { > function f() { > $this->x = 5; > } > } > class Child extends TheParent { > function f() { > UglyUncle::f(); > } > } > $c = new Child(); > var_dump($c->x); > $c->f(); > var_dump($c->x); > ?> > --EXPECT-- > int(3) > int(5) "Ugly" is right. As far as I'm concerned, that code should never have worked in the first place. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409