On Tue, April 3, 2012 9:02 pm, Alan Knowles wrote: > I just saw Daniel changing some of the PEAR classes to use Exceptions, > and it's pretty clear that this could cause havoc with the end users. > The problem being that there is no 'soft' landing for the migration > process.
If I understand set_exception_handler correctly, you could simply make anything that reaches that state simply not return at all, and exit. If you are that serious about the problem, the code expecting a result and not an exception won't get anything at all. And code with proper exception handling will do the right thing, assuming you have written all your exception handlers at every layer correctly. Personally, try/catch and throw always felt like "GOTO" to me, and the larger the codebase, the harder I found it to track down who was the thrower and who was the catcher. Reminded me of the old Abbot and Costello baseball routine. -- brain cancer update: http://richardlynch.blogspot.com/search/label/brain%20tumor Donate: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FS9NLTNEEKWBE -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php