RE: [PHP-DEV] Re: Windows OpCache bug fix

2015-10-05 Thread Anatol Belski
Hi Dmitry, > -Original Message- > From: Dmitry Stogov [mailto:dmi...@zend.com] > Sent: Friday, October 2, 2015 9:34 AM > To: Anatol Belski > Cc: Matt Ficken ; Pierre Joye > ; Anatoliy Belsky ; Laruence > ; PHP Internals ; dmi...@php.net > Subject: Re: [PHP-DEV] Re: Windows OpCache bug fix

[PHP-DEV] clone and new language construct consistency

2015-10-05 Thread Gauthier Delamarre
Hi all, I once suggested to some core developers to offer « clone » the same syntax as « new » has since 5.4. The idea being to be able to write this kind of code: $foo = new Foo; $bar = (clone $foo)->someMethod(); It seemed that this would not be that difficult to implement, and I was told t

Re: [PHP-DEV] clone and new language construct consistency

2015-10-05 Thread Nikita Popov
On Mon, Oct 5, 2015 at 9:48 AM, Gauthier Delamarre wrote: > Hi all, > > I once suggested to some core developers to offer « clone » the same > syntax as « new » has since 5.4. > > The idea being to be able to write this kind of code: > > $foo = new Foo; > $bar = (clone $foo)->someMethod(); > > It

Re: [PHP-DEV] PHP 7.0's Unicode version incoherence (mbstring, intl, pcre)

2015-10-05 Thread Côme Chilliet
Le jeudi 1 octobre 2015, 15:19:20 Tom Worster a écrit : > Do people here agree that PHP should have a *policy* of using a consistent > Unicode version? I agree with this, seems like a fair request. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/u

Re: [PHP-DEV] PHP 7.0's Unicode version incoherence (mbstring, intl, pcre)

2015-10-05 Thread Martin Keckeis
Hello, 2015-10-01 21:19 GMT+02:00 Tom Worster : > > Do people here agree that PHP should have a *policy* of using a consistent > Unicode version? > > This appears to be easy to accomplish for the moment. Moving to Unicode 8 > will be harder. > I agree with the policy -> good idea. But I think th

Re: [PHP-DEV] Re: [RFC] Arrow Functions

2015-10-05 Thread Rowan Collins
Tom Worster wrote on 03/10/2015 21:33: when the grammar starts with function(args), it seems the main difference from existing grammar is to make the curly braces when there's only one statement in the function block. in other contexts i had the impression that things like if (bool-expr)

Re: [PHP-DEV] Re: Windows OpCache bug fix

2015-10-05 Thread Dmitry Stogov
On Mon, Oct 5, 2015 at 10:29 AM, Anatol Belski wrote: > Hi Dmitry, > > > -Original Message- > > From: Dmitry Stogov [mailto:dmi...@zend.com] > > Sent: Friday, October 2, 2015 9:34 AM > > To: Anatol Belski > > Cc: Matt Ficken ; Pierre Joye > > ; Anatoliy Belsky ; Laruence > > ; PHP Intern

[PHP-DEV] Benchmark Results for PHP Master 2015-10-05

2015-10-05 Thread lp_benchmark_robot
Results for project php-src-nightly, build date 2015-10-05 05:13:19+03:00 commit: 746b37e2d551c89d25364ffefee19445651f93d6 revision_date: 2015-10-05 00:57:30+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] Re: Windows OpCache bug fix

2015-10-05 Thread Anatol Belski
> -Original Message- > From: Dmitry Stogov [mailto:dmi...@zend.com] > Sent: Monday, October 5, 2015 1:08 PM > To: Anatol Belski > Cc: Matt Ficken ; Pierre Joye > ; Laruence ; PHP Internals > ; dmi...@php.net > Subject: Re: [PHP-DEV] Re: Windows OpCache bug fix > > On Mon, Oct 5, 2015 at

Re: [PHP-DEV] Re: Windows OpCache bug fix

2015-10-05 Thread Dmitry Stogov
On Mon, Oct 5, 2015 at 3:51 PM, Anatol Belski wrote: > > > > -Original Message- > > From: Dmitry Stogov [mailto:dmi...@zend.com] > > Sent: Monday, October 5, 2015 1:08 PM > > To: Anatol Belski > > Cc: Matt Ficken ; Pierre Joye > > ; Laruence ; PHP Internals > > ; dmi...@php.net > > Subje

[PHP-DEV] Re: PHP 7.1 - should we add a random_str() function?

2015-10-05 Thread Scott Arciszewski
On Fri, Oct 2, 2015 at 5:10 PM, Tom Worster wrote: > I screwed up sending this earlier. Sorry if you get this twice. > > On 9/30/15 12:15 PM, Scott Arciszewski wrote: >> I think random_bytes() and random_int() are great; they provide a >> much-needed building block in PHP 7.0. However, I do worry

RE: [PHP-DEV] Re: Windows OpCache bug fix

2015-10-05 Thread Anatol Belski
> -Original Message- > From: Dmitry Stogov [mailto:dmi...@zend.com] > Sent: Monday, October 5, 2015 3:31 PM > To: Anatol Belski > Cc: Matt Ficken ; Pierre Joye > ; Laruence ; PHP Internals > ; dmi...@php.net > Subject: Re: [PHP-DEV] Re: Windows OpCache bug fix > > > > > > Subject: Re: [

[PHP-DEV] Re: PHP 7.1 - should we add a random_str() function?

2015-10-05 Thread Tom Worster
On 10/5/15, 11:34 AM, "Scott Arciszewski" wrote: > >You mentioned diceware. Incidentally, >https://paragonie.com/blog/2015/07/common-uses-for-csprngs-cryptographical >ly-secure-pseudo-random-number-generators#diceware > >Some problems (i.e. random_int) should be fixed at a language level. >Others,

Re: [PHP-DEV] PHP 7.0's Unicode version incoherence (mbstring, intl, pcre)

2015-10-05 Thread Tom Worster
On 10/5/15 5:20 AM, Martin Keckeis wrote: Hello, 2015-10-01 21:19 GMT+02:00 Tom Worster : Do people here agree that PHP should have a *policy* of using a consistent Unicode version? This appears to be easy to accomplish for the moment. Moving to Unicode 8 will be harder. I agree with the p

Re: [PHP-DEV] [RFC] [DRAFT]: Consistent callables

2015-10-05 Thread Rowan Collins
Dan Ackroyd wrote on 29/09/2015 15:25: Hello internals, Here is a draft RFC to make the callable type in PHP be consistent and have much fewer surprises. https://wiki.php.net/rfc/consistent_callables To break the silence: I really like the sentiment behind this, and it seems very thorough. I

RE: [PHP-DEV] Re: Windows OpCache bug fix

2015-10-05 Thread Eric Stenson
>From: Dmitry Stogov [mailto:dmi...@zend.com] > >> On Thu, Oct 1, 2015 at 11:54 AM, Matt Ficken >> wrote: >> >>> Pierre Joy wrote: >>> And what wincache does. It is slower but the request is served. >> >> WinCache (file cache) if it can't reattach, creates a new shared mem >> file > > I'm not su

Re: [PHP-DEV] RFC proposal.

2015-10-05 Thread Rowan Collins
On 4 October 2015 23:10:25 BST, somebody anon wrote: >Hi PHP community. I am a developer with few years experience in PHP and >now >want to propose some addition to default "filesystem" extension. >There's >money_format and number_format functions to format money and number >values >in human-read

Re: [PHP-DEV] Re: Windows OpCache bug fix

2015-10-05 Thread Matt Ficken
Ultimately if the 2nd OpCache is shared in a new SHM, in-process in a new SHM or in-process Heap, memory will increase, scripts have to be recompiled and there are consistency issues. File-cache will avoid recompiling scripts, but unless OpCache is disabled, there needs to be a 2nd OpCache stored s