Re: Should return "TRUE or PEAR_Error" ???
| From: | Martin Jansen | Date: | Tue, 21 Jul 2009 08:14:25 +0000 |
| Subject: | Re: Should return "TRUE or PEAR_Error" ??? | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-52437@lists.php.net to get a copy of this message | ||
David Coallier wrote:
> access function name(name)
> {
> throw new Mail_CheckUser_Exception('Something to tell your users..');
>
> return false;
> }
The "return false" statement in the code above is completely unnecessary
as code following the throw statement will not be executed.
- Martin