Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48732 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 558 invoked from network); 10 Jun 2010 19:42:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jun 2010 19:42:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=pdezwart@rubiconproject.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pdezwart@rubiconproject.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain rubiconproject.com designates 204.232.236.209 as permitted sender) X-PHP-List-Original-Sender: pdezwart@rubiconproject.com X-Host-Fingerprint: 204.232.236.209 server107n.exghost.com Windows 2000 SP4, XP SP1 Received: from [204.232.236.209] ([204.232.236.209:4644] helo=server107.appriver.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AA/95-03133-610411C4 for ; Thu, 10 Jun 2010 15:42:15 -0400 X-Policy: addante.com - addante.com X-Primary: pdezwart@rubiconproject.com X-Note: This Email was scanned by AppRiver SecureTide X-ALLOW: pdezwart@rubiconproject.com ALLOWED X-Virus-Scan: V- X-Note: Spam Tests Failed: X-Country-Path: UNITED STATES->UNITED STATES->PRIVATE->UNITED STATES X-Note-Sending-IP: 10.238.9.126 X-Note-Reverse-DNS: X-Note-WHTLIST: pdezwart@rubiconproject.com X-Note: User Rule Hits: X-Note: Global Rule Hits: G200 G201 G202 G203 G207 G208 G219 G307 X-Note: Encrypt Rule Hits: X-Note: Mail Class: ALLOWEDSENDER X-Note: Headers Injected Received: from [10.238.9.126] (HELO FE04.exg3.exghost.com) by server107.appriver.com (CommuniGate Pro SMTP 5.3.7) with ESMTP id 12019893 for internals@lists.php.net; Thu, 10 Jun 2010 15:42:10 -0400 Received: from BE43.exg3.exghost.com ([207.97.230.179]) by FE04.exg3.exghost.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 10 Jun 2010 15:42:11 -0400 Received: from 207.97.202.210 ([207.97.202.210]) by BE43.exg3.exghost.com ([207.97.230.179]) via Exchange Front-End Server exg3.exghost.com ([207.97.230.106]) with Microsoft Exchange Server HTTP-DAV ; Thu, 10 Jun 2010 19:41:34 +0000 User-Agent: Microsoft-Entourage/12.23.0.091001 Date: Thu, 10 Jun 2010 12:41:29 -0700 To: internals Message-ID: Thread-Topic: Proper return after throwing exception Thread-Index: AcsI1OuoO0vLji3qoU+N6r8vbrTzYw== Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-OriginalArrivalTime: 10 Jun 2010 19:42:11.0793 (UTC) FILETIME=[052AAC10:01CB08D5] Subject: Proper return after throwing exception From: pdezwart@rubiconproject.com (Pieter de Zwart) 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? Thanks, Pieter