Re: Proper return after throwing exception

From: Date: Thu, 10 Jun 2010 19:53:43 +0000
Subject: Re: Proper return after throwing exception
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-48733@lists.php.net to get a copy of this message
On 10.06.2010, at 23:41, Pieter de Zwart wrote: > Hey guys, > > Another n00b question: What is the proper way to return from a function > after throwing an exception? My code looks like: > > zend_throw_exception(amqp_connection_exception_class_entry, "blah blah > blah", 0 TSRMLS_CC); > return; > > Should I instead RETURN_FALSE from there? It doesn't really matter, as return value will never be checked. "return" should be enough -- Alexey Zakhlestin http://www.milkfarmsoft.com/

Attachment: [application/pkcs7-signature] smime.p7s
« previous php.internals (#48733) next »