Re: Fields of extended class not instatiated
| From: | Zeev Suraski | Date: | Sun, 23 Mar 2003 01:26:42 +0000 |
| Subject: | Re: Fields of extended class not instatiated | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-158@lists.php.net to get a copy of this message | ||
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? Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php