Re: Bug in reflectionMethod::getPrototype() ?
| From: | Pierre Joye | Date: | Mon, 23 Aug 2010 00:09:21 +0000 |
| Subject: | Re: Bug in reflectionMethod::getPrototype() ? | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-49485@lists.php.net to get a copy of this message | ||
hi,
On Mon, Aug 23, 2010 at 12:04 AM, Michel Bartz <Michel.Bartz@manwin.com> wrote:
> Hi,
>
> You could see it this way : getPrototype() will get you the information on where your function
> has been "declared" in the first place. If we extend your example:
The question is more about the naming. As the implementation may make
sense (as the method info is available too), it is confusing as I
would expect it to return the prototype of the method itself, not the
parent one. Documentation could be more clear too, even if the example
shows this exact case.
Cheers,
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org