Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87428 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22300 invoked from network); 31 Jul 2015 08:12:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jul 2015 08:12:15 -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.162 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.162 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.162] ([81.169.146.162:61430] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 50/41-15448-DDD2BB55 for ; Fri, 31 Jul 2015 04:12:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1438330330; l=4398; s=domk; d=kelunik.com; h=Content-Type:Cc:To:From:Subject:Date:References:In-Reply-To: MIME-Version; bh=mYx6/35oUu2xkXn8P8vvvhq/w5XSQ/mAe1MFa43qiTU=; b=IwK/WyL0ppGbf16xaRnmu33FaHx1txss3n3DiTWrskU5hIRksBplaPL4A+r6rmYaoj5 uKkdh/xztIwHomH9e2gVw6goiiBeCFbHsyjAYIj+z1I1GPZwhZIF4tV/Mb2Z0qx2Qq9iX 21pkp0493SvenTohjDi33PX64JGUP+DH7RE= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLDup6E67mzuoNNBqD+uQw= X-RZG-CLASS-ID: mo00 Received: from mail-wi0-f169.google.com ([209.85.212.169]) by smtp.strato.de (RZmta 37.8 AUTH) with ESMTPSA id R05b96r6V8CAzOh (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 10:12:10 +0200 (CEST) Received: by wibxm9 with SMTP id xm9so22683583wib.0 for ; Fri, 31 Jul 2015 01:12:10 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.194.60.226 with SMTP id k2mr3203752wjr.10.1438330330311; Fri, 31 Jul 2015 01:12:10 -0700 (PDT) Received: by 10.27.204.197 with HTTP; Fri, 31 Jul 2015 01:12:10 -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 10:12:10 +0200 Message-ID: To: Yasuo Ohgaki Cc: Scott Arciszewski , Rowan Collins , Anthony Ferrara , PHP Internals Content-Type: multipart/alternative; boundary=047d7bacbed66875ad051c276036 Subject: Re: [PHP-DEV] Core functions throwing exceptions in PHP7 From: me@kelunik.com (Niklas Keller) --047d7bacbed66875ad051c276036 Content-Type: text/plain; charset=UTF-8 2015-07-31 9:29 GMT+02:00 Yasuo Ohgaki : > Hi Scott, > > On Fri, Jul 31, 2015 at 6:33 AM, Scott Arciszewski > wrote: > >> On Jul 30, 2015 2:27 PM, "Niklas Keller" wrote: >> > I prefer Exception, too, because it's I/O related. >> > >> > @Scott: You can open votes on everything, doesn't matter, just create a >> page with a vote. >> > I just don't know where to put it in the wiki, because it's not a RFC. >> > >> > Regards, Niklas >> >> I'm not sure how to do that. >> >> I have a noncritical security patch I intend to write for random_bytes() >> that I would like to submit as a PR but first I'd like to see what the >> resolution will be re: Exceptions. >> >> Also, merge conflicts aren't fun. ;) >> >> If there's anything I can do to get those two merged faster, please let me >> know. > > > You can have RFC vote options like > > - Raise Error/Exception when CSPRNG is not available > (Choice: Yes/No) > - Use error(E_RECOVERABLE_ERROR) or exception(Whatever exception > prefered) > (Choice: Error/Exception) > > BTW, I prefer exception, but consistency is important also. > My vote will be Yes and Error. > > Regards, > > -- > Yasuo Ohgaki > yohgaki@ohgaki.net > > Hi Yasuo, I think the question is more whether Exception or Error (class, not E_RECOVERABLE_ERROR), to allow handling it gracefully. Regards, Niklas --047d7bacbed66875ad051c276036--