Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67340 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76729 invoked from network); 7 May 2013 17:40:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 May 2013 17:40:05 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 108.166.43.75 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 108.166.43.75 smtp75.ord1c.emailsrvr.com Linux 2.6 Received: from [108.166.43.75] ([108.166.43.75:52669] helo=smtp75.ord1c.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3C/C0-06696-37C39815 for ; Tue, 07 May 2013 13:40:04 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp2.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 0866B1E80A2; Tue, 7 May 2013 13:40:00 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp2.relay.ord1c.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 94F291E8125; Tue, 7 May 2013 13:39:58 -0400 (EDT) Message-ID: <51893C6D.7050003@sugarcrm.com> Date: Tue, 07 May 2013 10:39:57 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: Seva Lapsha CC: Patrick ALLAERT , Pierre Joye , Amaury Bouchard , =?ISO-8859-1?Q?Johannes_Schl=FCte?= =?ISO-8859-1?Q?r?= , Julien Pauli , PHP Internals References: <1367221266.2723.181.camel@guybrush> <517E9F47.4080100@sugarcrm.com> <51800539.7010807@sugarcrm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Continued try blocks From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > The feature exists in > Python: http://stackoverflow.com/questions/574730/python-how-to-ignore-an-exception-and-proceed, I don't think it does what is proposed - except/pass just catches an exception and does nothing, it does not return in the place where exception was thrown down the stack and continues execution. Looks like Ruby is the same thing. In PHP< you'd just do: try { dostuff(); } catch(Exception $e) {} but that's not what was proposed. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227