Re: Fields of extended class not instatiated

From: Date: Sun, 23 Mar 2003 12:07:19 +0000
Subject: Re: Fields of extended class not instatiated
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-173@lists.php.net to get a copy of this message
Quoting Zeev Suraski <zeev@zend.com>: > Should be fixed now. Thanks for the test case! > > Zeev > > At 17:43 22/03/2003, Jan Schneider wrote: > >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? Yes, works great now. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft

« previous php.internals (#173) next »