Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101900 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64671 invoked from network); 22 Feb 2018 17:38:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Feb 2018 17:38:46 -0000 Authentication-Results: pb1.pair.com header.from=mail@pmmaga.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=mail@pmmaga.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain pmmaga.net designates 149.210.149.73 as permitted sender) X-PHP-List-Original-Sender: mail@pmmaga.net X-Host-Fingerprint: 149.210.149.73 outbound2.mail.transip.nl Received: from [149.210.149.73] ([149.210.149.73:44782] helo=outbound2.mail.transip.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B0/51-22623-3200F8A5 for ; Thu, 22 Feb 2018 12:38:45 -0500 Received: from submission4.mail.transip.nl (submission4.mail.transip.nl [149.210.149.124]) by outbound2.mail.transip.nl (Postfix) with ESMTP id 3znM5s2QDWzZw9c for ; Thu, 22 Feb 2018 18:38:41 +0100 (CET) Received: from mail-wr0-f169.google.com (mail-wr0-f169.google.com [209.85.128.169]) by submission4.mail.transip.nl (Postfix) with ESMTPA id 3znM5q2NHnznV0Q for ; Thu, 22 Feb 2018 18:38:37 +0100 (CET) Received: by mail-wr0-f169.google.com with SMTP id p104so11387720wrc.12 for ; Thu, 22 Feb 2018 09:38:37 -0800 (PST) X-Gm-Message-State: APf1xPBe49RNpQtctGHRJOUZQzzCsD5yWv5/EQDBMe4alaY37t/xeI1q 2HiRt9CMIo67xYSuIJJf0UXL0JOqKQl7IpN32F4= X-Google-Smtp-Source: AH8x22553JivvSMnFEfeAIXv71D1b3kJSj8ZTRgkWC3T5clG2LMZlHVk7ufscdkevtrdMMOxrSZTvrRhyK+q4tbGFOM= X-Received: by 10.223.182.2 with SMTP id f2mr4868513wre.114.1519321111578; Thu, 22 Feb 2018 09:38:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.145.166 with HTTP; Thu, 22 Feb 2018 09:38:11 -0800 (PST) In-Reply-To: References: Date: Thu, 22 Feb 2018 17:38:11 +0000 X-Gmail-Original-Message-ID: Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="f4030439bfac27ceb10565d08338" X-Scanned-By: ClueGetter at submission4.mail.transip.nl DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=transip-a; d=pmmaga.net; t=1519321121; h=from:reply-to:subject:to: cc:references:in-reply-to:date:mime-version:content-type; bh=xehu2erDOEJSSFoluI/q2PDSy1Xtbh60703DCggYwSc=; b=ElKZKTBYDoffDAXOYJ5Fo0rNuAyYv2O66lOvOR0rAudMItDllmIiyF+BA186EODdmEOvD8 ZpX9g0u++gZoyth5R3vq/ZaSq/CNVgp2gqpd1zRGfPmE8iGzpd0qyMqWkSh1xV32xmChLP 5VTMrlwe8ohXRJ8BkS/hbeGHkYRnCklWLg1uWvJyopU/qp4L9zh6Tplzh/7re8+rxEJP6H zt4vtarWjvoWe63jdmN3uzZ7RfLXXmcwTRvKBKklRjoSQDQgaYxGrm7IVmwd6hbD1iYPlE 6AWgLSsSue2L1Pi7vOWfDPOCurhkoIemBx+2z8PidHRKHJEMHkNc/QKbGVSTPw== X-Report-Abuse-To: abuse@transip.nl Subject: Re: [RFC] [Discussion] Arrays starting with a negative index From: mail@pmmaga.net (=?UTF-8?Q?Pedro_Magalh=C3=A3es?=) --f4030439bfac27ceb10565d08338 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 13, 2018 at 8:03 PM, Pedro Magalh=C3=A3es wro= te: > 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 mino= r > version. On a second attempt targeting 8.0 I have also canceled the vote = as > the inclusion of a deprecation notice in cases where the behavior will > change warranted further discussion. > > To address these issues, the current version of the RFC will have 2 > separate votes: > - Introduce the new behavior on 8.0 > - Introduce a deprecation notice on 7.3 > > For those not familiar with the RFC, the general idea is that currently, > any array that has a number n as it's first numeric key will have for it'= s > next implicit key either n+1 if n >=3D 0 or 0 if n < 0. This RFC proposes= to > make this consistent by always using n+1 regardless of the sign of n. > In code: > $a[-2] =3D true; // Current: Key is -2, RFC: Key is -2 > $a[] =3D true; // Current: Key is 0, RFC: Key is -1 > $a[] =3D true; // Current: Key is 1, RFC: Key is 0 > > I invite you to read the full RFC: https://wiki.php.net/rfc/ > negative_array_index and bring up any issues you see with the current > version before the voting period starts. > > Looking forward for any feedback. > > Regards, > Pedro Magalh=C3=A3es > Hi internals, I'd like to open the voting for this RFC in 5 days (27/2). Please bring up any feedback you may have about it before the voting period starts. Thanks in advance, Pedro Magalh=C3=A3es --f4030439bfac27ceb10565d08338--