Re: [PHP-DEV] [RFC][DISCUSSION] Improve uniqid() uniqueness

2016-10-03 Thread Yasuo Ohgaki
Hi Davey, On Tue, Oct 4, 2016 at 4:59 AM, Davey Shafik wrote: > On Sunday, October 2, 2016, Yasuo Ohgaki wrote: >> >> Hi all, >> >> On Mon, Oct 3, 2016 at 3:56 AM, Yasuo Ohgaki wrote: >> > Besides improving "more entropy" the default and

[PHP-DEV] wordwrap with negative width

2016-10-03 Thread Stanislav Malyshev
Hi! I've just discovered that wordwrap() (http://php.net/wordwrap) accepts negative width parameter and treats it as if it was 0. It looks like a bug, never documented and works in code only by accident as far as I can see. So, my question is - would it be OK to drop support for negative width in

Re: [PHP-DEV] wordwrap with negative width

2016-10-03 Thread Yasuo Ohgaki
On Tue, Oct 4, 2016 at 11:20 AM, Stanislav Malyshev wrote: > I've just discovered that wordwrap() (http://php.net/wordwrap) accepts > negative width parameter and treats it as if it was 0. It looks like a > bug, never documented and works in code only by accident as far as I

Re: [PHP-DEV] Wiki RFC karma request: duncan3dc

2016-10-03 Thread Craig Duncan
On 2 October 2016 at 19:24, Craig Duncan wrote: > On 4 January 2016 at 16:42, Craig Duncan wrote: >> >> > Hi, >> > >> > I'd like to create an RFC to change the behaviour of counting objects, >> as >> > discussed in the following pull request: >> >

[PHP-DEV] Fwd: [PHP-BUG] Bug #73234 [NEW]: emulated statements let value dictate parameter type

2016-10-03 Thread Adam Baratz
This is a problem I've run into with pdo_dblib, but the fix would involve touching PDO Core. I'd appreciate any feedback on potential negative interactions with other drivers, as well as which PHP version I should target the fix for. It's arguable whether this is a bug or a feature request. If I

[PHP-DEV] BAD Benchmark Results for PHP Master 2016-10-03

2016-10-03 Thread lp_benchmark_robot
Results for project PHP master, build date 2016-10-03 06:25:50+03:00 commit: 82a8e57 previous commit:6a0f739 revision date: 2016-10-02 19:10:13+02: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] [RFC][DISCUSSION] Improve uniqid() uniqueness

2016-10-03 Thread Davey Shafik
On Sunday, October 2, 2016, Yasuo Ohgaki wrote: > Hi all, > > On Mon, Oct 3, 2016 at 3:56 AM, Yasuo Ohgaki wrote: > > Besides improving "more entropy" the default and data, I prepared > > fully compatible patch to simplify discussion. > > > >

Re: [PHP-DEV] Fwd: [PHP-BUG] Bug #73234 [NEW]: emulated statements let value dictate parameter type

2016-10-03 Thread Rowan Collins
On 3 October 2016 19:11:52 BST, Adam Baratz wrote: >Test script: >--- >$db = new PDO(...); > >$stmt = $db->prepare("SELECT :null"); >$stmt->bindValue(':null', null, PDO::PARAM_NULL); >$stmt->execute(); >var_dump($stmt->fetchAll()); // NULL Well, I'm pretty sure

Re: [PHP-DEV] Wiki RFC karma request: duncan3dc

2016-10-03 Thread Ferenc Kovacs
On Mon, Jan 4, 2016 at 5:42 PM, Craig Duncan wrote: > Hi, > > I'd like to create an RFC to change the behaviour of counting objects, as > discussed in the following pull request: > https://github.com/php/php-src/pull/1672 > > Please can I be granted rfc karma so I can create

Re: [PHP-DEV] Fwd: [PHP-BUG] Bug #73234 [NEW]: emulated statements let value dictate parameter type

2016-10-03 Thread Lester Caine
On 03/10/16 22:20, Rowan Collins wrote: > On 3 October 2016 19:11:52 BST, Adam Baratz wrote: >> >Test script: >> >--- >> >$db = new PDO(...); >> > >> >$stmt = $db->prepare("SELECT :null"); >> >$stmt->bindValue(':null', null, PDO::PARAM_NULL); >> >$stmt->execute();

Re: [PHP-DEV] Add support for HTTP/1.1

2016-10-03 Thread Niklas Keller
Rowan Collins schrieb am So., 2. Okt. 2016, 23:12: > Hi internallers! > > No, you haven't misread the subject line, I'm not talking about the > exciting new HTTP/2, but HTTP/1.1, 20 years old this year. > > To my surprise, PHP's HTTP stream wrapper (e.g. >

Re: [PHP-DEV] Re: [RFC][DISCUSSION] Improve uniqid() uniqueness

2016-10-03 Thread Leigh
On 2 October 2016 at 21:03, Yasuo Ohgaki wrote: > Hi all, > > On Mon, Oct 3, 2016 at 3:56 AM, Yasuo Ohgaki wrote: >> Besides improving "more entropy" the default and data, I prepared >> fully compatible patch to simplify discussion. >> >>

Re: [PHP-DEV] Re: [RFC][DISCUSSION] Improve uniqid() uniqueness

2016-10-03 Thread Yasuo Ohgaki
Hi Leigh, On Mon, Oct 3, 2016 at 9:06 PM, Leigh wrote: > I'm curious, did you consider using random_int? It already handles > biasing, and you can reduce the repeated calls to random_bytes. Yes. It seemed it might be slower due to number of retries at first, but I realized

Re: [PHP-DEV] [RFC][DISCUSSION] Improve uniqid() uniqueness

2016-10-03 Thread Pierre Joye
On Oct 4, 2016 8:55 AM, "Yasuo Ohgaki" wrote: > > Hi Davey, > > On Tue, Oct 4, 2016 at 4:59 AM, Davey Shafik wrote: > > On Sunday, October 2, 2016, Yasuo Ohgaki wrote: > >> > >> Hi all, > >> > >> On Mon, Oct 3, 2016 at 3:56 AM, Yasuo Ohgaki