Re: [RFC] [VOTE] Arrays starting with a negative index
| From: | Marco Pivetta | Date: | Wed, 07 Jun 2017 12:19:39 +0000 |
| Subject: | Re: [RFC] [VOTE] Arrays starting with a negative index | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-99421@lists.php.net to get a copy of this message | ||
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" <francois@tekwire.net> wrote:
> 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,
>>>
>>> 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 previous discussion:
>>> https://externals.io/thread/712
>>> And the PR (also some discussion):
>>> https://github.com/php/php-src
>>> /pull/2383
>>>
>> I voted no because of the BC break.
>>
>> cheers,
>> Derick
>>
>>
>>
>