Re: $_GET['a.b.c']
| From: | Stefan Walk | Date: | Tue, 13 Jan 2009 10:22:47 +0000 |
| Subject: | Re: $_GET['a.b.c'] | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42596@lists.php.net to get a copy of this message | ||
On 13 Jan 2009, at 11:09, Alexey Zakhlestin wrote:
On Tue, Jan 13, 2009 at 12:32 PM, troels knak-nielsen <troelskn@gmail.com> wrote:I think there should be a period where both methods of access are possible, allowing for smoother transition. Best regards, StefanIn 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']