Juan C. Rivera
|| at Jul 10, 2003 at 12:58 am
You should not use exceptions for program logic. Exceptions are use to
handle exceptional cases and the overhead of handling an exception may
be quite expensive. At least on other languages.
So, what is the overhead of throwing exceptions in PHP? Is it as
expensive as in .Net or C++?
From: Greg Beaver
Sent: Tuesday, July 08, 2003 1:30 PM
Subject: [PHP-DEV] exceptions question
In experimenting with exceptions, I notice that throw() always jumps to
the first catch() (as expected), and there is no way to return to the
line after the throw(). Are we forced to use trigger_error() or some
custom function for this kind of exception, or is there a way to tell
PHP 5 "go back, the exception is fixed"?
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php