Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87425 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16102 invoked from network); 31 Jul 2015 07:29:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jul 2015 07:29:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; 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:34198] helo=mail-yk0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6A/00-15448-6F32BB55 for ; Fri, 31 Jul 2015 03:29:58 -0400 Received: by ykax123 with SMTP id x123so53215621yka.1 for ; Fri, 31 Jul 2015 00:29:55 -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=PvwLIb6h6twzl99y2m7HZwRBxfp+FJRFiGEQAWyNrX4=; b=b2n73pDsYCdEFOGgtvpyZaqJZClbPpqvsOlHFvGDaaOJ/gpaWbOOV6Mk0L6cghMqts AAh2zUlP5Yf4W6avLEk+AQy606M0dTfUhoVCx+DOZjC0D8ZLj6xunWIXS9XpC01oo/vh GN3XK9Aq2MjMbRMOYbvbwJceXOF+ZsHTHI0IbOK37vV+OiFUQKQzsnpwBD85Yidzp0EA CoFCTc/F0DyJQxcJYXS1+mBz03wm5HOlPABOU7L7FZURMqOcQudFtH2FM5UDXXawic17 aCno4SqSN01hZHnM8RaQ5J/dbd2BPup1gU1B1p64AcTm/vMGN8peQNwKr8f/M/VYOaTC WYnw== X-Received: by 10.170.215.69 with SMTP id h66mr1642689ykf.74.1438327795113; Fri, 31 Jul 2015 00:29:55 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.129.40.77 with HTTP; Fri, 31 Jul 2015 00:29:15 -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 16:29:15 +0900 X-Google-Sender-Auth: YNBkVYIm1nnt1QqP7TQNiN0lGJo Message-ID: To: Scott Arciszewski Cc: Niklas Keller , Rowan Collins , Anthony Ferrara , PHP Internals Content-Type: multipart/alternative; boundary=001a113bcfa04c674b051c26c9ce Subject: Re: [PHP-DEV] Core functions throwing exceptions in PHP7 From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a113bcfa04c674b051c26c9ce Content-Type: text/plain; charset=UTF-8 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 --001a113bcfa04c674b051c26c9ce--