Re: ReflectionClass::getMethod()
| From: | Sebastian Bergmann | Date: | Fri, 24 Dec 2004 08:10:17 +0000 |
| Subject: | Re: ReflectionClass::getMethod() | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-14199@lists.php.net to get a copy of this message | ||
Andi Gutmans wrote:
> Sebastian, throwing an exception is relatively slow and cumbersome and
> sucks if you want to do something like a Delegation model and run
> through objects and check if a method can be called. Having exceptions
> thrown each time the object doesn't have the method is crazy.
I do not think so (that it is crazy), for what it's worth.
Changing it back to return FALSE instead of throwing an extension would
break existing applications (at least PHPUnit2).
--
Sebastian Bergmann http://www.sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69