Re: Stop replacing dots with underscores in query, post and cookie parameters for PHP 8?
| From: | Lauri Kenttä | Date: | Fri, 19 Jul 2019 19:37:12 +0000 |
| Subject: | Re: Stop replacing dots with underscores in query, post and cookie parameters for PHP 8? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-106241@lists.php.net to get a copy of this message | ||
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ä