Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106241 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 38311 invoked from network); 19 Jul 2019 22:15:01 -0000 Received: from unknown (HELO mail-ed1-f43.google.com) (209.85.208.43) by pb1.pair.com with SMTP; 19 Jul 2019 22:15:01 -0000 Received: by mail-ed1-f43.google.com with SMTP id v15so35428867eds.9 for ; Fri, 19 Jul 2019 12:37:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:content-transfer-encoding:date:from:to:cc:subject :in-reply-to:references:message-id:user-agent; bh=sPKDZteFbDxWfMt+5GMBxBAwuHYoDPE6h0n1braG6U8=; b=NQFQfFhyx+TM7j8mxgAuykPh7YXKGnPiyPYLra+VQzlzu8JI8fn1pZzxMc9msBmtQl RzlHzt7eee4Rvq3fMDZEVJKUsFsGDwpXkUZYdkQ/qolDf/SqpVn9t0eNRZlvRFQrETKu yax/HsFbKElKMZcPM9xOoS0fapnCsijDpKrC/qUzUCNaKwN8FcKk9gnFZtIOM8/Vp/h7 /aQDr3aS0pUkCGyaEd+zs/4cYx2Y1FkJoauCHhW0MSZ4zmgmIULvsD12hm4mNHJnfy10 KzH1l7Kw2jB4+S3+YtGXAfIcJdpu+gQxFTlxqAbYO6Xw4v57gtZwpumzpD/8K6y6WcEW 7JwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding:date:from :to:cc:subject:in-reply-to:references:message-id:user-agent; bh=sPKDZteFbDxWfMt+5GMBxBAwuHYoDPE6h0n1braG6U8=; b=hpWRQ1oz38MEpTYKImhTf6EL3HCL8r48zuvupEnVihKMNGJnN2QsufV5nv/Pbb5mw1 3fveHdy2d4BDnQ7C/o7K6hcuk2KCK3MirrEUj/6JffVb9/CJvFAZv2hNi5h2QMLerjP7 6m50Qw9puCDqJ1S7trj72wUlJXa/g1bgaOXvN7OxrdbuM6jba6jgqKVA/yeJbexd+qAN 5h+wAA/b4oVebC0G2KoxFWuc22IjAbT3wEHWFWYePHNoShk2wfPvfUzVswPmQXPPIutZ WBcaq0+yxdbSekbQBJdCoUdWGbLO7YdhYhR09B/j1WzHX0pKC8JpK6BzX9scxoFKjnWc FKiw== X-Gm-Message-State: APjAAAVpGx1WQ1dIqKFL8c81+xNU4wj1stkZ/C4ASLfaqTOC2OOjukim QUeBAtXUXFWjLw+kpI9rHKI= X-Google-Smtp-Source: APXvYqyU0Va2Uip4N/uDMcydlhFnxkOxVt2CsSLEObRu18oCATm5/GKDNsnuKc/WBkqhSRkD2zWXmQ== X-Received: by 2002:a05:6402:1612:: with SMTP id f18mr47909727edv.231.1563565034261; Fri, 19 Jul 2019 12:37:14 -0700 (PDT) Received: from k-piste.fi (k-piste.fi. [178.62.210.197]) by smtp.gmail.com with ESMTPSA id w6sm704371edq.81.2019.07.19.12.37.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Jul 2019 12:37:12 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Fri, 19 Jul 2019 22:37:12 +0300 To: Arnold Daniels , bishop@php.net Cc: internals@lists.php.net In-Reply-To: References: Message-ID: <12ad1b2de66c5a75ab30daacd1b0d1bf@gmail.com> X-Sender: lauri.kentta@gmail.com User-Agent: Roundcube Webmail/1.3.9 Subject: Re: [PHP-DEV] Stop replacing dots with underscores in query, post and cookie parameters for PHP 8? From: lauri.kentta@gmail.com (=?UTF-8?Q?Lauri_Kentt=C3=A4?=) On 2019-07-16 04:39, Arnold Daniels wrote: > PHP replaces dots with underscores for $_GET, $_POST and $_COOKIE. > Is there a good reason to keep this behavior in PHP 8? > There's a BC break that should be noted: produces i.x=1&i.y=2 Since the dots can't be changed with HTML, this would then require different code to support both PHP 7 and 8. Also, now that we're at it, what about the following: i[].x=1 currently produces ['i' => [0 => '1']], losing the x. i[x].y=1&i[x].z=2 produces ['i' => ['x' => '2']]. Maybe something to be done to address these cases? -- Lauri Kenttä