[PHP-DEV] PHP-7.1.0RC6

2016-11-08 Thread Joe Watkins
Morning All, 7.1.0RC6 has been tagged, and is available for download http://downloads.php.net/~krakjoe As this is the last RC before GA, I'm CC'ing internals on this email to encourage everyone to please test. If nothing bad happens, this RC will be released on the 10th November (very

Re: [PHP-DEV] DateTime microseconds discussion

2016-11-08 Thread Lester Caine
On 08/11/16 12:46, Derick Rethans wrote: >> Support for microseconds was added late in the 7.1 RC cycle, however is has >> > some issues: > Some *additional* support for microseconds was added in the PHP 7.1 > cycle, mostly to support bug fixes that have been around for a long > time. We had a

Re: [PHP-DEV] [RFC] Interval Comparison

2016-11-08 Thread David Walker
On Tue, Nov 8, 2016 at 12:34 PM Fleshgrinder wrote: > This requires associativity, as Python has it. > > https://docs.python.org/3/reference/expressions.html#comparisons > > The problem, as explained in the Python reference, is that in `x < y < > z` the variables `x` and

Re: [PHP-DEV] [RFC] Interval Comparison

2016-11-08 Thread Fleshgrinder
On 11/7/2016 10:51 PM, David Walker wrote: > Sense be damed ;-) . I'd attribute it to an identity of sorts (if it was > to go all out with comparison chaining). Yes it makes little sense, in > practice, but the truth of it would be the same. > > I realize that my comment, and question were going

Re: [PHP-DEV] DateTime microseconds discussion

2016-11-08 Thread Arjen Schol
On 11/08/2016 01:46 PM, Derick Rethans wrote: On Tue, 8 Nov 2016, Arjen Schol wrote: Hi, Support for microseconds was added late in the 7.1 RC cycle, however is has some issues: Some *additional* support for microseconds was added in the PHP 7.1 cycle, mostly to support bug fixes that have

Re: [PHP-DEV] DateTime microseconds discussion

2016-11-08 Thread Arjen Schol
On 11/08/2016 02:49 PM, Derick Rethans wrote: Hi, On Tue, 8 Nov 2016, Arjen Schol wrote: I think you make some bad assumptions here. Please don't top-reply on this list. The examples provided by Sjon are scripts submitted to 3v4l.org They may have bad assumptions, but are real life

Re: [PHP-DEV] DateTime microseconds discussion

2016-11-08 Thread Davey Shafik
On Tue, Nov 8, 2016 at 6:28 AM, Alice Wonder wrote: > On 11/08/2016 04:16 AM, Arjen Schol wrote: > >> Hi Dan, >> >> I think you make some bad assumptions here. The examples provided by >> Sjon are scripts submitted to 3v4l.org They may have bad assumptions, >> but are real

[PHP-DEV] UGLY Benchmark Results for PHP Master 2016-11-08

2016-11-08 Thread lp_benchmark_robot
Results for project PHP master, build date 2016-11-08 06:26:14+02:00 commit: 47d044b previous commit:80cb79f revision date: 2016-11-08 02:36:05+01:00 environment:Haswell-EP cpu:Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz 2x18 cores, stepping 2, LLC 45 MB

Re: [PHP-DEV] DateTime microseconds discussion

2016-11-08 Thread Alice Wonder
On 11/08/2016 04:16 AM, Arjen Schol wrote: Hi Dan, I think you make some bad assumptions here. The examples provided by Sjon are scripts submitted to 3v4l.org They may have bad assumptions, but are real life examples of DateTime usage. And they will break. They are already broken. That's the

Re: [PHP-DEV] DateTime microseconds discussion

2016-11-08 Thread Derick Rethans
Hi, On Tue, 8 Nov 2016, Arjen Schol wrote: > I think you make some bad assumptions here. Please don't top-reply on this list. > The examples provided by Sjon are > scripts submitted to 3v4l.org They may have bad assumptions, but are real life > examples of DateTime usage. And they will break.

Re: [PHP-DEV] DateTime microseconds discussion

2016-11-08 Thread Derick Rethans
On Tue, 8 Nov 2016, Arjen Schol wrote: > Hi, > > Support for microseconds was added late in the 7.1 RC cycle, however is has > some issues: Some *additional* support for microseconds was added in the PHP 7.1 cycle, mostly to support bug fixes that have been around for a long time. > > 1.

Re: [PHP-DEV] DateTime microseconds discussion

2016-11-08 Thread Arjen Schol
Hi Nikita, The https://3v4l.org/YUhFF example was to demonstrate it is NOT easy to set microseconds to zero. NOT to demonstrate new DateTime("5 minutes ago") == new DateTime("5 minutes ago"). new DateTime("5 minutes ago, 0 microseconds") indeed sets the microseconds to zero (nice to know)

Re: [PHP-DEV] [RFC] Interval Comparison

2016-11-08 Thread Lauri Kenttä
On 2016-11-07 23:51, David Walker wrote: On Mon, Nov 7, 2016 at 1:38 PM Fleshgrinder wrote: We are only extending binary to ternary for <= and <. I realize that my comment, and question were going a bit off-topic with going on about the chaining of comparisons, but I'm

Re: [PHP-DEV] DateTime microseconds discussion

2016-11-08 Thread Nikita Nefedov
Hey Arjen, On 8 November 2016 at 09:32, Arjen Schol wrote: There is no easy way to set microseconds to 0, you have to call setTime There actually is an easy way, you can pass microseconds absolute value in the constructor as well, it would like: `new DateTime("5 minutes ago,

Re: [PHP-DEV] DateTime microseconds discussion

2016-11-08 Thread Arjen Schol
Hi Dan, I think you make some bad assumptions here. The examples provided by Sjon are scripts submitted to 3v4l.org They may have bad assumptions, but are real life examples of DateTime usage. And they will break. We have two issues in our codebase. We ARE testing RC release, I think

Re: [PHP-DEV] DateTime microseconds discussion

2016-11-08 Thread Dan Ackroyd
On 8 November 2016 at 09:32, Arjen Schol wrote: > Hi, > > Support for microseconds was added late in the 7.1 RC cycle, however is has > some issues: My understanding is that if this affects your code, then your code already has a bad assumption in it. The code is mistakenly

[PHP-DEV] DateTime microseconds discussion

2016-11-08 Thread Arjen Schol
Hi, Support for microseconds was added late in the 7.1 RC cycle, however is has some issues: 1. There is no easy way to set microseconds to 0, you have to call setTime see https://3v4l.org/YUhFF A setMicroseconds method would be handy and/or support to relative strings to set microseconds