[PHP-DEV] implicit public peroperties

2003-08-27 Thread Marcus Börger
Hello internals, The following code: bla; } } $o = new b; print_r($o) ?> results in two properties which is wrong: b Object ( [bla] => [bla:protected] => ) I tried to fix this bug and found three solutions: 1) when the new class does its inheritance checks it could 'm

Re: [PHP-DEV] implicit public peroperties

2003-08-29 Thread Zeev Suraski
Fixed! At 01:17 28/08/2003, Marcus Börger wrote: Hello internals, The following code: class a { protected $bla; } class b extends a { public function murks() { return $this->bla; } } $o = new b; print_r($o) ?> results in two properties which is wrong: b

Re: [PHP-DEV] implicit public peroperties

2003-09-02 Thread Marcus Börger
Hello Zeev, Friday, August 29, 2003, 10:15:57 AM, you wrote: > Fixed! Yes you fixed it for implicit properties and i fixed it for internal properties. Now we still have to fix it for user space default properties and static properties. And for static properties we should disallow overriding the

Re: [PHP-DEV] implicit public peroperties

2003-09-08 Thread Brad Bulger
I hope that these fixes don't mean that the following is now on-purpose behavior: x); } } $b = new bar; ?> Output: Notice: Undefined property: bar::$x in ack.php on line 10 NULL On Wed, 3 Sep 2003, Marcus Börger wrote: > Hello Zeev, > > Friday, August 29, 2003, 10:15:57 AM, you wr

Re: [PHP-DEV] implicit public peroperties

2003-09-08 Thread Marcus Börger
Hello Brad, funny i checked so many complex errors that i overlooked one of the more obvious errors. In your script an implicit public property would overwrite an inherited public one. During class inheritance the default value must now be copied from parent to child. The copy code however also wo