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:

<input type=image name=i> 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ä

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to