Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70531 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52420 invoked from network); 8 Dec 2013 13:14:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Dec 2013 13:14:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=jakub.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=jakub.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) X-PHP-List-Original-Sender: jakub.php@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qc0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:59839] helo=mail-qc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 70/07-01020-8A074A25 for ; Sun, 08 Dec 2013 08:14:16 -0500 Received: by mail-qc0-f170.google.com with SMTP id x13so1932600qcv.1 for ; Sun, 08 Dec 2013 05:14:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=qkg3IxECBMmLMsRS/7tG76F7WNc288bBe/tu/ONWw7U=; b=bju83mmmWAyuE0lF+5jqml9vdJJ0rOZZA0E4SB4OEctI2wDMgEJiPVZ7m0S6yACDXc E8aLYKBhVySVLawDo37bDMpSGtmEejyDVI7rYCe3kdjLqJPvC1C86nSLHqNRqFp8azRL Nivzc+36Erq8ilO1L82IJfHyNvqcDN46c9Snlj74wC0SKnIObBZGvBi/igYkM1O64Y5p nD41dr4nSTpyfVgeCe7dw1KHXTWZf1zoDaFgiIE8AnYtqXSTe4Tm4jjA1C9oFUD+O+6z 4EARqo8VG1NQCEromASk06wfNfxUMIJ5w7pvc/nuvB0vi235FzkRX5Slqt0PDLn/zuZZ /jXQ== MIME-Version: 1.0 X-Received: by 10.224.129.202 with SMTP id p10mr25024866qas.84.1386508453321; Sun, 08 Dec 2013 05:14:13 -0800 (PST) Sender: jakub.php@gmail.com Received: by 10.224.39.144 with HTTP; Sun, 8 Dec 2013 05:14:13 -0800 (PST) In-Reply-To: <52A46C37.8080204@ajf.me> References: <52A46C37.8080204@ajf.me> Date: Sun, 8 Dec 2013 13:14:13 +0000 X-Google-Sender-Auth: afRj5rx-30LxYUV3bjbDvm7gkjI Message-ID: To: Andrea Faulds Cc: Nikita Popov , Ferenc Kovacs , PHP internals Content-Type: multipart/alternative; boundary=001a11c2c124d6a0af04ed05a785 Subject: Re: [PHP-DEV] [VOTE] Allowing use of exceptions in the engine From: bukka@php.net (Jakub Zelenka) --001a11c2c124d6a0af04ed05a785 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Sun, Dec 8, 2013 at 12:55 PM, Andrea Faulds wrote: > > > On 08/12/13 12:51, Jakub Zelenka wrote: > >> >> I think that the problem could be code like this: >> >> try { >> // do same stuff >> } catch (Exception $e) {} >> delete_something_important(); >> >> > Code which is that na=EFve probably doesn't run safely anyway, I doubt we > should worry about it. > > That's, of course, a simplified example! You can have code much more complex with similar result. The point was that you would be able to catch a fatal error and then do some nasty stuff after that... :) --001a11c2c124d6a0af04ed05a785--