Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112381 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 38450 invoked from network); 2 Dec 2020 18:57:57 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 Dec 2020 18:57:57 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 098491804C4 for ; Wed, 2 Dec 2020 10:25:42 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from bumble.birch.relay.mailchannels.net (bumble.birch.relay.mailchannels.net [23.83.209.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 2 Dec 2020 10:25:39 -0800 (PST) X-Sender-Id: dreamhost|x-authsender|josh@joshbruce.dev Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 004BF6417F2; Wed, 2 Dec 2020 18:25:37 +0000 (UTC) Received: from pdx1-sub0-mail-a76.g.dreamhost.com (100-105-161-16.trex.outbound.svc.cluster.local [100.105.161.16]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 9154E641494; Wed, 2 Dec 2020 18:25:36 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|josh@joshbruce.dev Received: from pdx1-sub0-mail-a76.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.11); Wed, 02 Dec 2020 18:25:36 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|josh@joshbruce.dev X-MailChannels-Auth-Id: dreamhost X-Battle-Stretch: 221d6439741d359e_1606933536846_2648460177 X-MC-Loop-Signature: 1606933536846:3953095195 X-MC-Ingress-Time: 1606933536846 Received: from pdx1-sub0-mail-a76.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a76.g.dreamhost.com (Postfix) with ESMTP id 5119F7ED46; Wed, 2 Dec 2020 10:25:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=joshbruce.dev; h= content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s= joshbruce.dev; bh=P0SpuuPISQRgU0aNT4Zgirr295Y=; b=jjWQacKRWH2/Av f1wkb92UNT6O75zGb459itSpkaGR3Ep/jKxi9fqqpLTMwI+eXy1/bYGolAF70Bn8 0y7KkD7yph1yTCKrlrRjO+4tkMEvx7DV/LJ3x9EOst+cn6kN3AsFGMjSKlWXUnCx 5n4SI/ul1xbunOtFQ2iOlxiUIeyNU= Received: from joshs-mbp.lan (21.140.29.136.in-addr.arpa [136.29.140.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: josh@joshbruce.dev) by pdx1-sub0-mail-a76.g.dreamhost.com (Postfix) with ESMTPSA id B754D7ED4A; Wed, 2 Dec 2020 10:25:35 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.20.0.2.21\)) X-DH-BACKEND: pdx1-sub0-mail-a76 In-Reply-To: Date: Wed, 2 Dec 2020 12:25:34 -0600 Cc: Florian Stascheck , PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: <02D24ABA-78F1-4F23-BDC2-666BC23C44D3@joshbruce.dev> References: To: "G. P. B." X-Mailer: Apple Mail (2.3654.20.0.2.21) Subject: Re: [PHP-DEV] Suggestion: Inconsistency: Allow array spread operator to work on string keys From: josh@joshbruce.dev (Josh Bruce) >=20 > The reason why this has been deferred is because of which semantics = should > be used for duplicate string keys. >=20 > Do we use the addition between two arrays semantics or the = array_merge() > semantics? See: https://3v4l.org/7QbWv >=20 > As the previous RFC you linked initially wanted to use the = array_merge() > semantics. But due to contention was left out. >=20 > Best regards, >=20 > George P. Banyard Does the loose interpretation of an array also play into this?? [=E2=80=9Cstring=E2=80=9D =3D> true, 10 =3D> false] Another new-to-internals questions, does the check only look at if the = keys contain one that is a string, that they=E2=80=99re all integers = (not float), that they=E2=80=99re all sequential?? Cheers, Josh=