Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c
| From: | (Marcus B�rger) | Date: | Fri, 29 Aug 2003 19:05:38 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c | ||
| References: | 1 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-1737@lists.php.net to get a copy of this message | ||
Hello Zeev,
Friday, August 29, 2003, 10:51:44 AM, you wrote:
ZS> zeev Fri Aug 29 04:51:44 2003 EDT
ZS> Modified files:
ZS> /ZendEngine2 zend_compile.c
ZS> Log:
ZS> Fix a problem in implicit public properties and inheritance
Thanks (If only i had seen the fix is so easy :-))
One question left, if i inherit a protected property i cannot make it public
in a derived class. That is wrong. We should either enable increasing
visibility or disallow redeclaration with increased visibility. Example:
<?php
class a {
protected $bla;
}
class b extends a {
public $bla;
public function murks() {
return $this->bla;
}
}
$o = new b;
print_r($o);
?>
=============
b Object
(
[bla] =>
[bla:protected] =>
)
=============
Any preference ideas on this?
Best regards,
marcus