Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98302 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7294 invoked from network); 15 Feb 2017 18:28:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Feb 2017 18:28:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=mail@pmmaga.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mail@pmmaga.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain pmmaga.net designates 149.210.149.72 as permitted sender) X-PHP-List-Original-Sender: mail@pmmaga.net X-Host-Fingerprint: 149.210.149.72 outbound1.mail.transip.nl Received: from [149.210.149.72] ([149.210.149.72:59850] helo=outbound1.mail.transip.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0C/70-01562-5DD94A85 for ; Wed, 15 Feb 2017 13:28:38 -0500 Received: from submission4.mail.transip.nl (submission4.mail.transip.nl [149.210.149.124]) by outbound1.mail.transip.nl (Postfix) with ESMTP id 3vNnq45cp1zgZFP for ; Wed, 15 Feb 2017 19:28:32 +0100 (CET) Received: from mail-vk0-f50.google.com (mail-vk0-f50.google.com [209.85.213.50]) by submission4.mail.transip.nl (Postfix) with ESMTPA id 3vNnq357r7znWfl for ; Wed, 15 Feb 2017 19:28:30 +0100 (CET) Received: by mail-vk0-f50.google.com with SMTP id k127so104293466vke.0 for ; Wed, 15 Feb 2017 10:28:30 -0800 (PST) X-Gm-Message-State: AMke39mzrClerE0pDlxkXPZP2ld5OMueu9kZ1V8gxup71r4435imi36qOPJaq2H4SikPLIjQZCfI9Usuk3nTUA== X-Received: by 10.31.213.7 with SMTP id m7mr15577566vkg.48.1487183310136; Wed, 15 Feb 2017 10:28:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.2.8 with HTTP; Wed, 15 Feb 2017 10:28:09 -0800 (PST) Date: Wed, 15 Feb 2017 19:28:09 +0100 X-Gmail-Original-Message-ID: Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=94eb2c07aadceab544054895d89e X-Scanned-By: ClueGetter at submission4.mail.transip.nl X-Report-Abuse-To: abuse@transip.nl Subject: On arrays starting with a negative index From: mail@pmmaga.net (=?UTF-8?Q?Pedro_Magalh=C3=A3es?=) --94eb2c07aadceab544054895d89e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi internals, I've prepared a PR (https://github.com/php/php-src/pull/2383) that would change the current behavior of arrays when the first index is a negative integer. The main goal is to make the result of array_fill more in line with what you would expect if the start_index is a negative integer. However, the current (and historical) result is properly documented on the array_fill page. I would like to hear your feedback about this change and if you feel this warrants an RFC. Best regards, Pedro Magalh=C3=A3es --94eb2c07aadceab544054895d89e--