[PHP-DEV] [RFC] [VOTE] Arrays starting with a negative index

2018-03-01 Thread Pedro Magalhães
Hi internals, After fixing some issues with the deprecation notice, this RFC is ready for the voting period. There are two separate votes in this RFC and both require a 2/3 majority: - Introduce the new behavior in 8.0 - Introduce a deprecation notice in 7.3 You can find the RFC on: https:

Re: [PHP-DEV] [RFC] [VOTE] Arrays starting with a negative index

2017-06-07 Thread Aaron Piotrowski
> On Jun 7, 2017, at 6:31 AM, Derick Rethans wrote: > > I voted no because of the BC break. > Changed my vote to no for the same reason. The subtly of the BC would make bugs potentially difficult to discern. Would happily vote yes again for an RFC targeting 8. Aaron Piotrowski -- PHP Intern

Re: [PHP-DEV] [RFC] [VOTE] Arrays starting with a negative index

2017-06-07 Thread Sebastian Bergmann
Am 07.06.2017 um 13:31 schrieb Derick Rethans: > I voted no because of the BC break. Same. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] [VOTE] Arrays starting with a negative index

2017-06-07 Thread Marco Pivetta
Voting "no" as well, since applications relying on "array_keys()" and assuming on the allowed integer range of those may even become vulnerable. This is one of those subtle BC breaks that are extremely hard to find. On 7 Jun 2017 2:12 p.m., "François Laupretre" wrote: > Hi, > > The same for me.

Re: [PHP-DEV] [RFC] [VOTE] Arrays starting with a negative index

2017-06-07 Thread François Laupretre
Hi, The same for me. Strange to see 7 people willing to introduce such a BC break in a minor version, or did I miss something ? Anyway, +1 to introduce the change in PHP 8. Cheers, François Le 07/06/2017 à 13:31, Derick Rethans a écrit : On Tue, 6 Jun 2017, Pedro Magalhães wrote: Hi all,

Re: [PHP-DEV] [RFC] [VOTE] Arrays starting with a negative index

2017-06-07 Thread Derick Rethans
On Tue, 6 Jun 2017, Pedro Magalhães wrote: > Hi all, > > I have just opened the vote on this RFC. > > The main goal of the RFC is to eliminate the inconsistency in arrays when > negative numeric keys are used explicitly and the following implicit keys > will start from zero. > > You can find th

[PHP-DEV] [RFC] [VOTE] Arrays starting with a negative index

2017-06-06 Thread Pedro Magalhães
Hi all, I have just opened the vote on this RFC. The main goal of the RFC is to eliminate the inconsistency in arrays when negative numeric keys are used explicitly and the following implicit keys will start from zero. You can find the RFC here: https://wiki.php.net/rfc/negative_array_index The