Re: Fwd: [PHP-DEV] RC1
| From: | Timm Friebe | Date: | Thu, 26 Feb 2004 04:50:17 +0000 |
| Subject: | Re: Fwd: [PHP-DEV] RC1 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-8145@lists.php.net to get a copy of this message | ||
On Thu, 2004-02-26 at 01:33, Timm Friebe wrote:
> On Wed, 2004-02-25 at 15:41, Andi Gutmans wrote:
> > Quick reminder...
> > If you have any bugs to fix, please fix them in the coming days.
...and another one:
$ cat protected.php
<?php
class A {
protected function __construct() {
echo "Constructor was called\n";
}
}
$r= new Reflection_Class('A');
var_dump($r->newInstance());
?>
$ php-dev protected.php
Constructor was called
object(A)#2 (0) {
}
This should not be allowed. The following patch includes a fix for this
and the problems mentioned with Reflection_Property::
getDeclaringClass().
- Timm
Attachment: [text/x-patch] zend_reflection_api.diff
Attachment: [text/x-patch] zend_reflection_api.diff