Christian Schneider wrote: >> Calling getMethod() for a method that does not exist is an error and >> should be consistently treated as such by raising an exception. > > I disagree. The same could be said for getenv().
The Reflection API was introduced at the same time as exceptions. It therefore makes perfect sense to make consistent use of exception in the Reflection API. > My point being that exceptions are very hard to handle properly and > people disagree on how to do it (as seen in this thread) so they should > be used sparingly and seldom be forced onto people. So the people who know how to do it right should do without because of the people who do not know how to it right? This is absurd. -- Sebastian Bergmann http://www.sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php