Re: $_GET['a.b.c']
| From: | Alexey Zakhlestin | Date: | Tue, 13 Jan 2009 10:09:20 +0000 |
| Subject: | Re: $_GET['a.b.c'] | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42595@lists.php.net to get a copy of this message | ||
On Tue, Jan 13, 2009 at 12:32 PM, troels knak-nielsen
<troelskn@gmail.com> wrote:
> In a recent mail, some kind of issue regarding queryparams was
> mentioned (Possibly related to namespaces). Could anybody explain what
> the issue is, or point to where it's discussed?
Currently, php replaces dots in paramter-names with underscores. This
is a legacy of register_globals.
As register_globals still can be enabled in 5.3, it is better to leave
this replacement for consistency reasons (you can't have $a.b.c
variable).
In 6.0, on the other hand, register_globals is not available. So, it
doesn't make sense to have replacement there too.
5.3 is left with status-quo:
?a.b.c=10 => $a_b_c, $_GET['a_b_c']
6.0 will have:
?a.b.c=10 => $_GET['a.b.c']
> On Mon, Jan 12, 2009 at 11:56 AM, Lukas Kahwe Smith <mls@pooteeweet.org> wrote:
>> - I guess we are not going to deal with "foo.php?a.b.c = 10" in 5.3.0
>> (should we put something on the 6.0 todo list for this?)
--
Alexey Zakhlestin
http://www.milkfarmsoft.com/