Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:154 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37527 invoked from network); 22 Mar 2003 23:44:12 -0000 Received: from unknown (HELO ammma.de) (213.83.39.131) by pb1.pair.com with SMTP; 22 Mar 2003 23:44:12 -0000 Received: from ammma.net (ammma.net [62.225.101.66]) by ammma.de (8.11.6/8.11.6/AMMMa AG) with ESMTP id h2MNhpR24412 for ; Sun, 23 Mar 2003 00:43:51 +0100 Received: from neo.wg.de (jan.ammma.mil [192.168.100.11]) by ammma.net (8.9.3/8.9.3/AMMMa AG) with ESMTP id AAA08135 for ; Sun, 23 Mar 2003 00:43:54 +0100 Received: by neo.wg.de (Postfix, from userid 30) id 0B6FD4EB12; Sun, 23 Mar 2003 00:43:54 +0100 (CET) Received: from laptop.wg.de (laptop.wg.de [192.168.60.3]) by jan.dip.ammma.net (Horde) with HTTP for ; Sun, 23 Mar 2003 00:43:54 +0100 Message-ID: <1048376634.c77fc1452f2ae@jan.dip.ammma.net> X-Priority: 3 (Normal) Date: Sun, 23 Mar 2003 00:43:54 +0100 To: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.0-cvs X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Subject: Fields of extended class not instatiated From: jan@horde.org (Jan Schneider) This code run in current code (HEAD): class Foo { var $arr = array(); } class FooX extends Foo { function bar() { var_dump($this->arr); } } $foo = new FooX(); $foo->bar(); produces "NULL" as the output. I guess this is not the intended behaviour? Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft