Re: Proper return after throwing exception
| From: | Daniel Convissor | Date: | Fri, 11 Jun 2010 17:24:16 +0000 |
| Subject: | Re: Proper return after throwing exception | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-48740@lists.php.net to get a copy of this message | ||
Hi Pieter:
On Thu, Jun 10, 2010 at 12:41:29PM -0700, Pieter de Zwart wrote:
>
> zend_throw_exception(amqp_connection_exception_class_entry, "blah blah
> blah", 0 TSRMLS_CC);
> return;
These kinds of questions (regarding how to use PHP) should be asked on
the php-general list. The internals list you wrote to is for discussions
of how to make PHP.
Anyway, the "return" line in your code can never be reached, so should
not be there at all.
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409