Fields of extended class not instatiated

From: Date: Sat, 22 Mar 2003 23:43:54 +0000
Subject: Fields of extended class not instatiated
Groups: php.internals 
Request: Send a blank email to internals+get-154@lists.php.net to get a copy of this message
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

« previous php.internals (#154) next »