Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96548 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17510 invoked from network); 22 Oct 2016 20:00:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Oct 2016 20:00:33 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@ohgaki.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@ohgaki.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ohgaki.net designates 180.42.98.130 as permitted sender) X-PHP-List-Original-Sender: yohgaki@ohgaki.net X-Host-Fingerprint: 180.42.98.130 ns1.es-i.jp Received: from [180.42.98.130] ([180.42.98.130:50702] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 82/E9-28528-C55CB085 for ; Sat, 22 Oct 2016 16:00:30 -0400 Received: (qmail 21827 invoked by uid 89); 22 Oct 2016 20:00:25 -0000 Received: from unknown (HELO mail-qk0-f179.google.com) (yohgaki@ohgaki.net@209.85.220.179) by 0 with ESMTPA; 22 Oct 2016 20:00:25 -0000 Received: by mail-qk0-f179.google.com with SMTP id z190so192460832qkc.2 for ; Sat, 22 Oct 2016 13:00:24 -0700 (PDT) X-Gm-Message-State: ABUngvdSRHZ9cXyJbqq9OAG8RFYzN+8qxK/3PjbISWMAXD5AG2zPoRixDmLosFGOZAVTKmzny+skKOmOrFWxpA== X-Received: by 10.55.177.5 with SMTP id a5mr7835620qkf.153.1477166418520; Sat, 22 Oct 2016 13:00:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.22.38 with HTTP; Sat, 22 Oct 2016 12:59:38 -0700 (PDT) In-Reply-To: <59.D6.28528.0B0AA085@pb1.pair.com> References: <59.D6.28528.0B0AA085@pb1.pair.com> Date: Sun, 23 Oct 2016 04:59:38 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Andrea Faulds Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Convert numeric keys in object/array casts From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi Andrea, On Sat, Oct 22, 2016 at 8:11 AM, Andrea Faulds wrote: > To try and fix a longstanding issue, and to actually bring some attention to > the fix, I've created a new RFC, which can be found here: > > https://wiki.php.net/rfc/convert_numeric_keys_in_object_array_casts > > It targets PHP 7.2, which is maybe a little conservative. It could target > PHP 7.1 theoretically, but it's probably a bit late for that. > > I'm also not sure if this really ought to be an RFC, but I've received > little feedback so far, so it can't hurt. Nice RFC! It seems patch is made to convert int index to string index to allow numeric key, is it? I guess it is the limitation and the reason why it's inaccessible. Numeric key name must be string? $obj->{'0'} = 1; or could be like (Without quotes) $obj->{0} = 1; Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net