On Thursday, June 19, 2003, at 02:57 PM, Shane Caraveo wrote:


I knew I should have kept my mouth shut...

Marcus Börger wrote:
Hello Shane,
just to repeat there weren't any exceptions in php4

Yes, you don't have to tell me the obvious.



and the things
that'll use exceptions in php5 will require full rewrite anyway. So i
don't see any problem.

try { function_call_to_some_preexisting_library_that_doesnt_do_exceptions() } catch(e) { }

The auto-generated exceptions can be of type InternalException extends Exception {}, and then the caller can decide whether or not they want to comply with the old method (just die on the spot), or to try and deal with the error.


George

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to