[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-internals
Subject:    Re: [PHP-DEV] Stop replacing dots with underscores in query, post andcookie parameters for PHP 8?
From:       Claude Pache <claude.pache () gmail ! com>
Date:       2019-07-24 0:03:44
Message-ID: F0D35CC0-11DC-4F54-9DCE-C5A98B90D61D () gmail ! com
[Download RAW message or body]


> 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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic