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

2018-02-28 Thread Pedro Magalhães
On Mon, Feb 26, 2018 at 5:25 PM, Pedro Magalhães wrote: > > Hi Nikita, thanks for the feedback. > > About the implementation of the deprecation notice, I agree that it should > be updated to be exception-safe. > Hi internals, Just to give you an update on the current status.

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

2018-02-26 Thread Pedro Magalhães
On Mon, Feb 26, 2018 at 1:05 PM, Nikita Popov wrote: > > > I like the change, but I'm concerned about the technical impact that > deprecation notice will have. An error handler can convert the notice into > an exception, which means that zend_hash_next_index_insert is now

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

2018-02-26 Thread Nikita Popov
On Tue, Feb 13, 2018 at 9:03 PM, Pedro Magalhães wrote: > Hi internals, > > I want to bring up this RFC once again given that now seems to be the right > timing for it. I have previously canceled the vote when I initially > proposed this to land on 7.2 which was seen as too big

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

2018-02-13 Thread Pedro Magalhães
Hi internals, I want to bring up this RFC once again given that now seems to be the right timing for it. I have previously canceled the vote when I initially proposed this to land on 7.2 which was seen as too big of a BC for a minor version. On a second attempt targeting 8.0 I have also canceled

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

2017-05-21 Thread Pedro Magalhães
Hi all, I have previously discussed this topic here and I have now created an 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: