Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87429 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28064 invoked from network); 31 Jul 2015 09:47:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jul 2015 09:47:39 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.182 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.160.182 mail-yk0-f182.google.com Received: from [209.85.160.182] ([209.85.160.182:35288] helo=mail-yk0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 41/10-26884-A344BB55 for ; Fri, 31 Jul 2015 05:47:39 -0400 Received: by ykdu72 with SMTP id u72so55095527ykd.2 for ; Fri, 31 Jul 2015 02:47:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=177mvwEVqUL3FfqKbORqWGBoBYm0eyjmDg6R7TtEzPo=; b=h8XhzKuSF8wr3d3KTc64LPw58YH2omEF3yCI+uXsPcBzRQRFJc9b8vV/VOzqG6caBO twfSEa5A+O9uMG6I4UPrINAwrMrXl7wbcAZ3FuOL/pRRlk3pitawzLzmsy+F3Rme/kEl 3Wghj4J5eEiYPKKt3Jew50s1ly8pjzkSTQpiTR35eFPbuqhzmiNaVDaaFAgExmz+Nxyp HJjaRnl7AqK/Br/22bD/HTa9PxkVETvHlfmEWLfKAZZW3I5iDxAIJsgPMnJtmYGUb4M5 PmMUhvX840TUeyUBvh9o5hQLGrsvjoFngp7/o87JihLtxY5f753IAvLLopZgML5WjRhE h1XA== X-Received: by 10.13.216.210 with SMTP id a201mr2199844ywe.89.1438336056083; Fri, 31 Jul 2015 02:47:36 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.129.40.77 with HTTP; Fri, 31 Jul 2015 02:46:56 -0700 (PDT) In-Reply-To: References: <836BA21C-AE99-4E7B-AB06-EBC30E41BA0E@icicle.io> <0AD335F5-35F3-4D98-8F82-800A1EDF8FD8@icicle.io> <05f101d0c838$fcdab5e0$f69021a0$@belski.net> <55B63FDF.6050100@gmail.com> <55B66494.1020106@gmail.com> <55B6707A.3040405@gmail.com> Date: Fri, 31 Jul 2015 18:46:56 +0900 X-Google-Sender-Auth: reo6TKSLbN2bkyofNqH6BL8GQxE Message-ID: To: Niklas Keller Cc: Scott Arciszewski , Rowan Collins , Anthony Ferrara , PHP Internals Content-Type: multipart/alternative; boundary=001a114e4a5cb0cb18051c28b539 Subject: Re: [PHP-DEV] Core functions throwing exceptions in PHP7 From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a114e4a5cb0cb18051c28b539 Content-Type: text/plain; charset=UTF-8 Hi Niklas, On Fri, Jul 31, 2015 at 5:12 PM, Niklas Keller wrote: > I think the question is more whether Exception or Error (class, not > E_RECOVERABLE_ERROR), to allow handling it gracefully. > E_WARNING is too weak for CSPRNG not available. It's fatal error. I agree fatal errors should be able to handle gracefully if it is possible. That's the reason why I prepared a patch that changes session E_ERROR to E_RECOVERABLE_ERROR. https://github.com/php/php-src/compare/master...yohgaki:master-e_recoverable_error?expand=1 It's inspired by this thread :) Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a114e4a5cb0cb18051c28b539--