Re: Best way to use ocilogoff and ocifreestatement?
| From: | Richard Lynch | Date: | Fri, 03 Aug 2001 03:07:55 +0000 |
| Subject: | Re: Best way to use ocilogoff and ocifreestatement? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-61067@lists.php.net to get a copy of this message | ||
> functions that have many multiple exit points
This is your real problem. Don't do that.
Re-structure the logic to have one, and only one, exit point to the function
at the bottom.
Non-local exit (exit points not at the end of a function) should be reserved
for truly disastrous situations that are never, ever supposed to happen...
Even then, you can usually code it better with an if/else or a flag or an
error-accumulator or...
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm