Re: register globals -> PHP6 still replaces . in variables from outside
| From: | Scott MacVicar | Date: | Sun, 24 Feb 2008 20:12:55 +0000 |
| Subject: | Re: register globals -> PHP6 still replaces . in variables from outside | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-35775@lists.php.net to get a copy of this message | ||
The old behaviour would have to remain as well as anything new as it isn't easy to simply change your script. You'd need to track down all your input and change any references of x.y to x_y to ensure you don't break anything.
Scott
Sebastian wrote:
hi, PHP6 still replaces "." with an underscore in variables from outside. this is an old behavior forced by register globals so i would say its a bug since "." is valid in array keys. for sample: call a script like http://www.example.com/?my.var=1 now $_GET will look like this: Array ( [my_var] => 1) Thanks