Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96567 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91202 invoked from network); 23 Oct 2016 23:47:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Oct 2016 23:47:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.175 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.175 mail-pf0-f175.google.com Received: from [209.85.192.175] ([209.85.192.175:36805] helo=mail-pf0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D8/A3-28528-F0C4D085 for ; Sun, 23 Oct 2016 19:47:29 -0400 Received: by mail-pf0-f175.google.com with SMTP id e6so87038874pfk.3 for ; Sun, 23 Oct 2016 16:47:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=fS75pcd+bqUkPN9YFHiCeFW+SyDmkxdomCr2QecgwpE=; b=RT7GpRR8tdluw8kf1iWPnv2hVsfXFgX5F8E1VaMwH2Goj9VffgbvVKIgVOQ+T4gy1i qG1wViv12s+sxqozh10J3vmz4LjwCXYUxZ8WOpes2FZA9QD3M10VWiJ95pTBZvt1vxFn ef9kspqSXIpSrJQvEiIKj5X0x7C5MlQlspBSzB9xsLLTGOAfIFtFxem6t7Nc6zF7v9G+ RtePlJSq+H/I/yketZwlA40i3DTV98C9oNxiYF+I9srlMRfZRDyZnRPdLMLxTDH60D4O xR/oDi5PgCkOaq2IjJP8nr6bcXCHs6CoRneX0V5AWlrOh6XyBWCOKQ7njrisu4q9dOzo ULQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=fS75pcd+bqUkPN9YFHiCeFW+SyDmkxdomCr2QecgwpE=; b=eMZZLMD+NJBMdMC4wxfYhb5Zw9WYP/csdokbyKDQ/fy9v/x4Keb2GdQKw4cTdz2J6O etEtKP4V3cLyBdiqq3jCCsClbdqK8hWUbVKZ3r2YUaULUEJFniOMenkiW9s3+C/v8e5o N9dygQViKtU6/fJIeqnE/TKz1RMd7qmuwKRFm4Lg7mzUh2VnI1UDoLAYbcAtT8Yhq/zt ok9LkF3Ma9nRbIk6VnXNC3uqUg/oGabApE/1ycvPXyQc2N997J2gNUSlPwHqvvN00N0p cRlT08QZPp+qvQlgILb5gGAd7Dw80m52AUxo3RS2wH+yvNCipugE7qjh+Vk1J9DoZLjc ztkA== X-Gm-Message-State: ABUngvfxojMzFHD+wx5Z9cQr9MUnDtd/dbeGQxHsV8x+XVfqvCGu41xu1kD36aCV/xj9mA== X-Received: by 10.99.97.15 with SMTP id v15mr19338808pgb.10.1477266444819; Sun, 23 Oct 2016 16:47:24 -0700 (PDT) Received: from Stas-Air.local ([2602:306:ce9c:e680:1890:46a7:9aa1:a4af]) by smtp.gmail.com with ESMTPSA id m62sm20067437pfi.10.2016.10.23.16.47.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Oct 2016 16:47:24 -0700 (PDT) To: Andrea Faulds , internals@lists.php.net References: <59.D6.28528.0B0AA085@pb1.pair.com> Message-ID: Date: Sun, 23 Oct 2016 16:47:22 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <59.D6.28528.0B0AA085@pb1.pair.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Convert numeric keys in object/array casts From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > 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 How common is this problem? It looks like an edge case of an edge case (converting objects to arrays as such is not a very frequent operation, and the reverse is even less frequent) but adds performance hit on the common case. > 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. This is a behavior change and a performance hit, so definitely yes, it should be RFC. -- Stas Malyshev smalyshev@gmail.com