Re: [PHP-DEV] [RFC] Add HTTP/2 Support to the CLI Server

2016-01-19 Thread Derick Rethans
On Mon, 18 Jan 2016, Davey Shafik wrote: > Hey all, > > following on from previous discussions[1], I am introducing an RFC for > adding HTTP/2 support to the built-in CLI server: > > https://wiki.php.net/rfc/cli_server_http2 I think this is good to have, but I have a few comments: php -S

Re: [PHP-DEV] [RFC] Allow specifying keys in list()

2016-01-19 Thread Lester Caine
On 19/01/16 01:35, Andrea Faulds wrote: >> $point = new Point(21, 42); >> list('x' => $x, 'y' => $y) = $point; > > You can't do `$x = $point['x'];`, so `list("x" => $x) = $point;` won't > work either. If you want list() support, implement ArrayAccess. > > We could potentially add some extension

Re: [PHP-DEV] [RFC] [Draft] Adopt Code of Conduct

2016-01-19 Thread Arvids Godjuks
2016-01-19 20:03 GMT+02:00 Arvids Godjuks : > Hello to everyone. > > The Draft states: > > "This Code of Conduct applies both within project spaces and in public > spaces when an individual is representing the project or its community." > > TL;DR: Just no. > > Long

Re: [PHP-DEV] [RFC] [Draft] Adopt Code of Conduct

2016-01-19 Thread Arvids Godjuks
Hello to everyone. The Draft states: "This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community." TL;DR: Just no. Long version: What is the definition of "representing project or it's community". If I make a

[PHP-DEV] Re: [RFC] Allow specifying keys in list()

2016-01-19 Thread Andrea Faulds
Hi again, I've updated the RFC to v1.1, because I've resolved the open issue of whether to allow arbitrary expressions for keys. It seems that the risk of confusion was less than I thought it was, and allowing anything not only simplifies implementation, but means you can do things like have

Re: [PHP-DEV] [RFC] Add HTTP/2 Support to the CLI Server

2016-01-19 Thread Davey Shafik
On Jan 19, 2016, at 6:21 AM, Derick Rethans wrote: > >> On Mon, 18 Jan 2016, Davey Shafik wrote: >> >> Hey all, >> >> following on from previous discussions[1], I am introducing an RFC for >> adding HTTP/2 support to the built-in CLI server: >> >>

Re: [PHP-DEV] [RFC] Add HTTP/2 Support to the CLI Server

2016-01-19 Thread Davey Shafik
> On Jan 19, 2016, at 6:21 AM, Derick Rethans wrote: > >> On Mon, 18 Jan 2016, Davey Shafik wrote: >> >> Hey all, >> >> following on from previous discussions[1], I am introducing an RFC for >> adding HTTP/2 support to the built-in CLI server: >> >>

Re: [PHP-DEV] [RFC][VOTE] Number Format Separator

2016-01-19 Thread Pascal MARTIN, AFUP
Le 13/01/2016 19:48, Thomas Punt a écrit : Voting has opened for the inclusion of a digit separator in PHP[1]. Voting ends in one week's time on January 20th. Hi, At AFUP, we would be on the -1 side (by a huge margin). The "good" thing would be code that's a bit more readable, yes. But it

Re: [PHP-DEV] [RFC] Allow specifying keys in list()

2016-01-19 Thread Leigh
On 19 January 2016 at 02:20, Andrea Faulds wrote: > After considering how to implement this at the opcode level, I've decided > again that it's not worth it. Mixing keyed and unkeyed elements is not only > an implementation nuisance (it's not necessarily hard, but it makes things >

[PHP-DEV] NEUTRAL Benchmark Results for PHP Master 2016-01-19

2016-01-19 Thread lp_benchmark_robot
Results for project PHP master, build date 2016-01-19 06:30:40+02:00 commit: 8e60e0c previous commit:3a8c4a0 revision date: 2016-01-18 20:52:17+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] [RFC] Allow specifying keys in list()

2016-01-19 Thread Rowan Collins
Lester Caine wrote on 19/01/2016 11:49: If we ever add object literals, then >we could do object destructuring with a symmetrical syntax. Andrea, please bare with me as I'm trying to work out just what some of those long words actually mean. I think what Andrea's getting at is being able to

Re: [PHP-DEV] Re: [RFC] Normalize token_get_all() output (with flag)

2016-01-19 Thread Stig Bakken
On Mon, Jan 18, 2016 at 2:41 AM, Sara Golemon wrote: > On Sun, Jan 17, 2016 at 3:34 AM, Stig Bakken > wrote: > > On Jan 17, 2016 05:23, "Sara Golemon" wrote: > >> > >> Okay, i've got a starting point up at > >>