Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115646 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 92338 invoked from network); 6 Aug 2021 15:09:19 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Aug 2021 15:09:19 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2C151180511 for ; Fri, 6 Aug 2021 08:38:50 -0700 (PDT) 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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS8560 212.227.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 6 Aug 2021 08:38:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1628264327; bh=ABCe8KiU5rWRaBL4FQOLUnZOiKZa/q+MdOORiIUKgXQ=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=SC07+DlK5O4qJvitNFa4gWa/uJJme9/n9pF3O790OThTUZbphCFJGRx6l14MMsjA/ byyM9FdNypgwkiVDlCIPmV4jLdng0Bn6YX0knQMTY7A61IBiaGll8OIFi1b+TNYTID OpPD9xgIUxh61gXHmGQipxGTrXLfypytYpsFlQus= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.2.130] ([91.8.175.136]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N6KUd-1nDe1O2XV3-016icW; Fri, 06 Aug 2021 17:38:47 +0200 To: Rowan Tommins , internals@lists.php.net References: <70ae3208-250b-5d47-28d7-282d7bf44ed7@gmail.com> Message-ID: Date: Fri, 6 Aug 2021 17:38:47 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <70ae3208-250b-5d47-28d7-282d7bf44ed7@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:hs3r5TcZ7YL8NiuV03W0yCy03rFiX5l2Wf34CL3AsU80GEFlGI7 gn9W4nup/5fXhnmfwj2uSBoqb6ul50TVFfLoNNb6dI+KijasmG08uxSdEfsN6AVsfrHgGY7 mqVdPS9ADqOQtQZbaKkCTx09GdIUDB6ZiDjpPB8tIiqOH9QRIPBtJQmZ9hLX5TuRr007ITt P5dbDjAN4knSto/BckQHg== X-UI-Out-Filterresults: notjunk:1;V03:K0:Dro3JkK+htg=:hjCNfQrvR3aclrEiYBAmw6 lQ769PejWO6IYLHQ/yQoTnjrjy+77bEhS6ouWLe4q7N8H5XcJW4YQPkBes1QWsrstiT3XbtSp EzcPHPcmv6WRIA8j79V2OuasCt2eIqOQ7q1Ae8N9dfRrpaoi5mp9MKCuQ3+fsau+9FjtihWAL 34cpj1fmFaoM8RvQBIXHpoQ/K3PJpHCfIn/PrG+vVLx3YIcmQ2ii+9J6+qfRrweTaD0/4GTvm 3AiaVU8gtBmGitFlJI7LLQuCD4TMAMKrpCSefkXvxBJemTOseKimpdRfvx+n21Z+GA3sd8hxG RcplD65wrswPDy8FRjAIpwAq0PK8ji6gAGZdgKp5oGEF+f4Laqgb/9Xv+E00JiifTTTVfx2Bg ohwPV95NOoeWGb2iXWO7Y33gMy+QwSA1CnbS1TnWWZ5SifffdJycyV5F0lye26adZJyH+Gcwj kQtXIc6bHaOFQ043njbLG8VGIrg+ztyD02uodUEdBzRAbrdrZ2AbuWXeX4isjNH6jHb2P+3XI rpxWSBDH1H4iJ3TEUkZmn1/wyxa9/pK6YwGLEctyF/G5pRjDL96n2AyzDK5DnatIg0LAld+rN KqA6hunXv8i4IUeVUgQIl/rBQk1wSKZkt2A0u6a0R5y6VZwoRz1Y4s/6ybjIj7U4BpRClrUgr htOlERXPmdqF9/AxbM3mV9FOO/xAlJIEyBvyZA0+YODn9BCYBt2wEqfeSqpp2IBtU/mUee+RL q743pq21jhgMCeOCv4aRPX2lsZESyHFHygd3VILO4mqF3T8YiHvJaiM2VLebk4g3x2qDgijnQ sfifOqjzNaHTGUa7arTbCuHrRbsqLiFjvfQ64n+5b5fYL7LA1tkp/A7mF6xh+FLjCHHwKHQiJ DheYJ1Z0IAfgwAbDfSBm+bPHojjsaSPmr7PN7GXqVSlV/b6QV4OvahbtdNFf3M7auFCA4O1uz WwysZA4lC2UmlpEmxa16PcX63azDkxr8PUBDviMNTnhzWB5B81lpvjIUKU9ANIpCfkIhsSdt0 kAxvZRcePCFeoyZBc/trpyjU5/ZW4P3+emc/Bs0HrRJNojWaHlfgAmgpNp22+4wrimABW7naC Okhvf2VDvvESuuZYxnlYlYfT7/PSZwNZmf1FlkbvwibHX4YeyJj2Kr+Yw== Subject: Re: [PHP-DEV] [RFC] Add parse_query_string as an alternative toparse_str From: cmbecker69@gmx.de ("Christoph M. Becker") On 06.08.2021 at 15:20, Rowan Tommins wrote: > On 06/08/2021 12:12, Kamil Tekiela wrote: > >> Perhaps, instead of adjusting this behaviour only for the new >> function, we >> could remove this behaviour as a whole, given that it is a remainder >> of the >> long-forgotten register globals? I don't see any use for it anymore > > Changing behaviour like this is tricky, because even if it's not that > useful, it is consistent, so code to process a query string of > "?foo.bar=3D42" will be looking at $_GET['foo_bar'] not $_GET['foo.bar']= . > If we "fix" the name mangling, that code will break, and not necessarily > in a very obvious way. > > Note that there are other parts of the request which get mangled in > similar ways, such as when HTTP headers are translated into CGI > environment variables. The solution in that case is to ignore the CGI > vars and use a function like getallheaders(), so having a non-mangling > http_parse_query() doesn't feel out of place. Right. *If* we want to change this name mangling, we should change it everywhere, and that certainly needs an own RFC and ideally some kind of deprecation/change notice. =2D- Christoph M. Becker