Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48740 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88268 invoked from network); 11 Jun 2010 17:24:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jun 2010 17:24:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=danielc@analysisandsolutions.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=danielc@analysisandsolutions.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain analysisandsolutions.com from 166.84.1.72 cause and error) X-PHP-List-Original-Sender: danielc@analysisandsolutions.com X-Host-Fingerprint: 166.84.1.72 mail1.panix.com Received: from [166.84.1.72] ([166.84.1.72:49840] helo=mail1.panix.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 47/1D-08093-341721C4 for ; Fri, 11 Jun 2010 13:24:20 -0400 Received: from panix5.panix.com (panix5.panix.com [166.84.1.5]) by mail1.panix.com (Postfix) with ESMTP id CF9711F08C; Fri, 11 Jun 2010 13:24:16 -0400 (EDT) Received: by panix5.panix.com (Postfix, from userid 14662) id B3DD02425B; Fri, 11 Jun 2010 13:24:16 -0400 (EDT) Date: Fri, 11 Jun 2010 13:24:16 -0400 To: Pieter de Zwart Cc: internals Message-ID: <20100611172416.GA11065@panix.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Re: [PHP-DEV] Proper return after throwing exception From: danielc@analysisandsolutions.com (Daniel Convissor) 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