Re: [PHP-DEV] [RFC] Generalize support of negative string offsets

2016-02-14 Thread Yasuo Ohgaki
Hi Pierre, On Mon, Feb 15, 2016 at 4:01 PM, Pierre Joye wrote: > On Feb 15, 2016 1:15 PM, "Yasuo Ohgaki" wrote: >> >> Hi all, >> >> On Mon, Feb 15, 2016 at 12:49 PM, Stanislav Malyshev >> wrote: >> >> Another issue mentioned in this thread is the spurious array conversion >> >> that happens for

Re: [PHP-DEV] [RFC] Generalize support of negative string offsets

2016-02-14 Thread Pierre Joye
On Feb 15, 2016 1:15 PM, "Yasuo Ohgaki" wrote: > > Hi all, > > On Mon, Feb 15, 2016 at 12:49 PM, Stanislav Malyshev > wrote: > >> Another issue mentioned in this thread is the spurious array conversion > >> that happens for empty strings. We have an existing bug report for this: > >> https://bugs

Re: [PHP-DEV] [RFC] Generalize support of negative string offsets

2016-02-14 Thread Yasuo Ohgaki
Hi all, On Mon, Feb 15, 2016 at 12:49 PM, Stanislav Malyshev wrote: >> Another issue mentioned in this thread is the spurious array conversion >> that happens for empty strings. We have an existing bug report for this: >> https://bugs.php.net/bug.php?id=53432 I've created a PR to fix this >> issu

Re: [PHP-DEV] [RFC] Generalize support of negative string offsets

2016-02-14 Thread Stanislav Malyshev
Hi! > This fix has been merged into master (targeting 7.1), thanks! I'm not sure that was such a good idea (sorry, didn't have time to write about it before the weekend). Introducing a new warning into previously working code is a BC break, and one that wasn't even discussed in its own thread. Mo

Re: [PHP-DEV] [RFC] Generalize support of negative string offsets

2016-02-14 Thread Nikita Popov
On Fri, Feb 12, 2016 at 12:44 AM, François Laupretre wrote: > Le 11/02/2016 17:25, Andrea Faulds a écrit : > >> Hi François, >> >> François Laupretre wrote: >> >>> String offsets are full of oddities : >>> >>> $str = "abc"; >>> $str{0} = ''; >>> var_dump($str); // -> string(3) "bc" (read as "\0bc

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

2016-02-14 Thread Andrea Faulds
Andrea Faulds wrote: Good afternoon, Voting on the "Allow specifying keys in list()" RFC has now ended, taking place from 2016-02-05 to 2016-02-14. At least 2/3 of votes must be in favour for the RFC to pass. With 23 votes in favour and 11 against, the proportion of Yes votes to No votes is 67.

[PHP-DEV] [RESULT] Allow specifying keys in list()

2016-02-14 Thread Andrea Faulds
Good afternoon, Voting on the "Allow specifying keys in list()" RFC has now ended, taking place from 2016-02-05 to 2016-02-14. At least 2/3 of votes must be in favour for the RFC to pass. With 23 votes in favour and 11 against, the proportion of Yes votes to No votes is 67.6%, so the RFC has