Re: ReflectionMethod::setAccessible()
| From: | Sebastian Bergmann | Date: | Thu, 03 Sep 2009 09:55:05 +0000 |
| Subject: | Re: ReflectionMethod::setAccessible() | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-45459@lists.php.net to get a copy of this message | ||
Sebastian Bergmann schrieb:
> The patch below adds the ReflectionMethod::setAccessible() method and
> adds support for the ignore_visibility flag that is controlled by this
> method to ReflectionMethod::invoke() and ReflectionMethod::invokeArgs().
>
> The patch complements ReflectionProperty::setAccessible() that was added
> in PHP 5.3.0. It has been developed for PHP_5_3 and I am proposing it
> for PHP 5.3.1 (it's a new feature, but a minor one).
An updated version of the patch can be found at
http://gist.github.com/180216.
--
Sebastian Bergmann Co-Founder and Principal Consultant
http://sebastian-bergmann.de/
http://thePHP.cc/