Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87430 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30993 invoked from network); 31 Jul 2015 10:21:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jul 2015 10:21:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.221 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.221 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.221] ([81.169.146.221:38773] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FA/00-30530-B0C4BB55 for ; Fri, 31 Jul 2015 06:21:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1438338056; l=3592; s=domk; d=kelunik.com; h=Content-Type:Cc:To:From:Subject:Date:References:In-Reply-To: MIME-Version; bh=8AJZ/SEZDGmeqP+so97pLuV5jmFpfYFFsxAp2srmrN0=; b=qDNAGDGz5tPmLmfM2ICsSbO3RpzJ1PIkZnnEo8thKsim2NvMnEFpaEPkAX/C+WdUmQb v7sJ10fnyIvQTwui1rmQcw0iRAaxXys+64qaGXJIhILqqhxp9Cy6tN2hLkmyPHZptjqBz 8ZQlPooIvPSEFC/gZYqs5Bw6p2LdpqNyzOM= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLDup6E67mzuoNNBqDwsm4= X-RZG-CLASS-ID: mo00 Received: from mail-wi0-f182.google.com ([209.85.212.182]) by smtp.strato.de (RZmta 37.8 AUTH) with ESMTPSA id Y0469dr6VAKu2Ad (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for ; Fri, 31 Jul 2015 12:20:56 +0200 (CEST) Received: by wicgj17 with SMTP id gj17so11158855wic.1 for ; Fri, 31 Jul 2015 03:20:56 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.194.77.5 with SMTP id o5mr4818768wjw.102.1438338056614; Fri, 31 Jul 2015 03:20:56 -0700 (PDT) Received: by 10.27.204.197 with HTTP; Fri, 31 Jul 2015 03:20: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 12:20:56 +0200 Message-ID: To: Yasuo Ohgaki Cc: Scott Arciszewski , Rowan Collins , Anthony Ferrara , PHP Internals Content-Type: multipart/alternative; boundary=047d7bd91da4ee7e80051c292c0d Subject: Re: [PHP-DEV] Core functions throwing exceptions in PHP7 From: me@kelunik.com (Niklas Keller) --047d7bd91da4ee7e80051c292c0d Content-Type: text/plain; charset=UTF-8 Using set_error_handler isn't handling errors gracefully. Well, it's better than E_ERROR, but then libraries can't handle those errors gracefully, because the user might override its error handler by setting an own handler. Regards, Niklas 2015-07-31 11:46 GMT+02:00 Yasuo Ohgaki : > 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 > > --047d7bd91da4ee7e80051c292c0d--