RE: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-22 Thread Anatol Belski
Anthony, > -Original Message- > From: Anthony Ferrara [mailto:ircmax...@gmail.com] > Sent: Saturday, August 22, 2015 5:55 PM > To: Anatol Belski > Cc: Pierre Joye ; Scott Arciszewski > ; Niklas Keller ; Trevor Suarez > ; PHP internals > Subject: Re: [PHP-DEV

Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-22 Thread Anthony Ferrara
iszewski >> ; Niklas Keller ; Trevor Suarez >> ; PHP internals >> Subject: Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7 >> >> Pierre >> >> On Aug 21, 2015 22:33, "Pierre Joye" wrote: >> > >> > On Sat, Aug 22

RE: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-22 Thread Anatol Belski
ubject: Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7 > > There has been quite extensive discussion on this topic. Apart from 30 > comments on the original PR for this, there are 100 mails across three topics > discussing this issue. As far as I can discern, there was

RE: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-22 Thread Anatol Belski
Hi Anthony, > -Original Message- > From: Anthony Ferrara [mailto:ircmax...@gmail.com] > Sent: Saturday, August 22, 2015 4:44 AM > To: Pierre Joye > Cc: Anatol Belski ; Scott Arciszewski > ; Niklas Keller ; Trevor Suarez > ; PHP internals > Subject: Re: [PHP-DEV

Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-22 Thread Christoph Becker
On 22.08.2015 at 03:02, Pierre Joye wrote: > On Aug 22, 2015 7:39 AM, "Christoph Becker" wrote: >> >> On 21.08.2015 at 12:14, Scott Arciszewski wrote: >> >>> 2. One of the folks in the camp that WANTS an RFC and a drawn out >>> formal decision-making process opens it with a poll. >> >> AIUI, that

Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-22 Thread Nikita Popov
>; > > Niklas Keller ; PHP Internals > > Subject: Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7 > > > > On Fri, Aug 21, 2015 at 6:14 AM, Scott Arciszewski > > wrote: > > > On Fri, Aug 21, 2015 at 3:52 AM, Pierre Joye > wrote: > > &

Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-21 Thread Pierre Joye
On Aug 22, 2015 9:33 AM, "Pierre Joye" wrote: > > On Sat, Aug 22, 2015 at 9:16 AM, Anthony Ferrara wrote: > > > If that's what it will take I will happily draft one tomorrow morning. But > > if the RMs are against it, I will respect that as well. Hence the dilemma. > > For what I understand the R

Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-21 Thread Anthony Ferrara
Pierre On Aug 21, 2015 22:33, "Pierre Joye" wrote: > > On Sat, Aug 22, 2015 at 9:16 AM, Anthony Ferrara wrote: > > > If that's what it will take I will happily draft one tomorrow morning. But > > if the RMs are against it, I will respect that as well. Hence the dilemma. > > For what I understand

Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-21 Thread Pierre Joye
On Sat, Aug 22, 2015 at 9:16 AM, Anthony Ferrara wrote: > If that's what it will take I will happily draft one tomorrow morning. But > if the RMs are against it, I will respect that as well. Hence the dilemma. For what I understand the RMs are not against what it is proposed but its incompletene

Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-21 Thread Scott Arciszewski
gt; >> > To: Scott Arciszewski > > >> > Cc: Pierre Joye ; Trevor Suarez > > >> > ; > > >> > Niklas Keller ; PHP Internals > > >> > > > >> > Subject: Re: [PHP-DEV] Recap - Core functions throwing exceptions in

Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-21 Thread Anthony Ferrara
-Original Message- > >> > From: Anthony Ferrara [mailto:ircmax...@gmail.com] > >> > Sent: Friday, August 21, 2015 3:37 PM > >> > To: Scott Arciszewski > >> > Cc: Pierre Joye ; Trevor Suarez > >> > ; > >> > Niklas Keller ; PH

Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-21 Thread Pierre Joye
Sent: Friday, August 21, 2015 3:37 PM >> > To: Scott Arciszewski >> > Cc: Pierre Joye ; Trevor Suarez >> > ; >> > Niklas Keller ; PHP Internals >> > Subject: Re: [PHP-DEV] Recap - Core functions throwing exceptions in >> > PHP7 >> > >>

RE: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-21 Thread Anthony Ferrara
Trevor Suarez ; > > Niklas Keller ; PHP Internals > > Subject: Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7 > > > > On Fri, Aug 21, 2015 at 6:14 AM, Scott Arciszewski > > wrote: > > > On Fri, Aug 21, 2015 at 3:52 AM, Pierre Joye wrote: &g

Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-21 Thread Pierre Joye
On Aug 22, 2015 7:39 AM, "Christoph Becker" wrote: > > On 21.08.2015 at 12:14, Scott Arciszewski wrote: > > > 2. One of the folks in the camp that WANTS an RFC and a drawn out > > formal decision-making process opens it with a poll. > > AIUI, that is not how it is supposed to work. Those who want

Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-21 Thread Christoph Becker
On 21.08.2015 at 12:14, Scott Arciszewski wrote: > 2. One of the folks in the camp that WANTS an RFC and a drawn out > formal decision-making process opens it with a poll. AIUI, that is not how it is supposed to work. Those who want to change existing behavior should make a respective RFC, if co

RE: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-21 Thread Anatol Belski
Hi, > -Original Message- > From: Anthony Ferrara [mailto:ircmax...@gmail.com] > Sent: Friday, August 21, 2015 3:37 PM > To: Scott Arciszewski > Cc: Pierre Joye ; Trevor Suarez ; > Niklas Keller ; PHP Internals > Subject: Re: [PHP-DEV] Recap - Core functions throwi

Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-21 Thread Rasmus Lerdorf
On 08/21/2015 06:36 AM, Anthony Ferrara wrote: > My proposal/stance: > > Let's make random_* throw an Exception if it cannot connect to a > random source. And let's have it throw an TypeError if ZPP fails, or > Error if min >= max. > > The first two are consistent with existing exceptions. I don

Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-21 Thread Andrey Andreev
Hi, On Fri, Aug 21, 2015 at 4:36 PM, Anthony Ferrara wrote: > > MHO is this is too important of a distinction to simply gloss over. > Having it return false (or null) will be a problem, as nobody will > perform the error checks. And returning $x where `$x == 0` in a > security context could be in

Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-21 Thread Anthony Ferrara
On Fri, Aug 21, 2015 at 6:14 AM, Scott Arciszewski wrote: > On Fri, Aug 21, 2015 at 3:52 AM, Pierre Joye wrote: >> On Fri, Aug 21, 2015 at 9:38 AM, Scott Arciszewski >> wrote: >>> On Wed, Aug 19, 2015 at 11:36 AM, Trevor Suarez wrote: Ah, I didn't realize this thread existed. I had just c

Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-21 Thread Scott Arciszewski
On Fri, Aug 21, 2015 at 3:52 AM, Pierre Joye wrote: > On Fri, Aug 21, 2015 at 9:38 AM, Scott Arciszewski > wrote: >> On Wed, Aug 19, 2015 at 11:36 AM, Trevor Suarez wrote: >>> Ah, I didn't realize this thread existed. I had just commented on the old >>> one, but the point still stands: >>> >>>

Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-21 Thread Pierre Joye
On Fri, Aug 21, 2015 at 9:38 AM, Scott Arciszewski wrote: > On Wed, Aug 19, 2015 at 11:36 AM, Trevor Suarez wrote: >> Ah, I didn't realize this thread existed. I had just commented on the old >> one, but the point still stands: >> >> PHP 7.0 RC1 was just tagged. >> Shouldn't this be a relatively

Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-20 Thread Scott Arciszewski
On Wed, Aug 19, 2015 at 11:36 AM, Trevor Suarez wrote: > Ah, I didn't realize this thread existed. I had just commented on the old > one, but the point still stands: > > PHP 7.0 RC1 was just tagged. > Shouldn't this be a relatively high priority to fix/decide so we don't end > up with behavior tha

Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-19 Thread Trevor Suarez
Ah, I didn't realize this thread existed. I had just commented on the old one, but the point still stands: PHP 7.0 RC1 was just tagged. Shouldn't this be a relatively high priority to fix/decide so we don't end up with behavior that can't be fixed until PHP 8.0? On Mon, Aug 10, 2015 at 6:54 PM Ni

Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-10 Thread Niklas Keller
> > Okay, great, we have people on both sides on this discussion. I hope > nobody minds if I sit this part out. > > What specifics need to be discussed? Should somebody set up a poll? (I > don't know how to do that.) You can find information on how to setup a poll in step 6 here: https://wiki.php

Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-10 Thread Scott Arciszewski
On Thu, Aug 6, 2015 at 4:52 AM, Niklas Keller wrote: > Scott, could you setup a RFC with a vote, so we can decide? > > Nikita proposed those two options: > >> 1) Error is to be used in cases where an error is attributable to >> programmer mistake. >> >> >> >> 2) Error signifies a failure condition

Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-06 Thread Aaron Piotrowski
> On Aug 6, 2015, at 3:52 AM, Niklas Keller wrote: > > Scott, could you setup a RFC with a vote, so we can decide? > > Nikita proposed those two options: > >> 1) Error is to be used in cases where an error is attributable to >> programmer mistake. >> > > >> 2) Error signifies a failure cond

Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-06 Thread Niklas Keller
Scott, could you setup a RFC with a vote, so we can decide? Nikita proposed those two options: 1) Error is to be used in cases where an error is attributable to > programmer mistake. > 2) Error signifies a failure condition that the programmer is discouraged > (and unlikely to want) to handle.

Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7

2015-08-06 Thread Leigh
On Thu, 6 Aug 2015 00:55 Scott Arciszewski wrote: All, I'd like to move the conversation towards a decision regarding PRs 1397 and 1398. These decisions are blocking random_compat as well as a security enhancement to random_bytes (merge conflicts are *the worst*). Here's a quick recap Argument