Re: Stop replacing dots with underscores in query, post andcookie parameters for PHP 8?

From: Date: Wed, 24 Jul 2019 00:03:44 +0000
Subject: Re: Stop replacing dots with underscores in query, post andcookie parameters for PHP 8?
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-106271@lists.php.net to get a copy of this message
> Le 24 juil. 2019 à 00:52, Stanislav Malyshev <smalyshev@gmail.com> a écrit : > > Hi! > >> My preferred solution would be to add a new built-in function that >> re-does the mangling exactly as it used to be done. It would be no great >> maintenance burden on us to maintain such a function for the future, but >> it would avoids userland having to reimplement it multiple times and >> less performantly or perhaps with bugs. > > That looks like good idea. If we mention it in UPGRADING, that should > make it easier to migrate for people that for one reason or another > still rely on the old ways. > One use cause affected may be image buttons (if anyone still uses them?) > since there usage of .x and .y is standard. > -- > Stas Malyshev > smalyshev@gmail.com <mailto:smalyshev@gmail.com> An alternative way to deal with either mangled or unmangled key names is: ($_GET["foo.x"] ?? $_GET["foo_x"]) —Claude

« previous php.internals (#106271) next »