#21925 [Bgs]: Should allow dots in global variables name
| From: | mikep at oeone dot com | Date: | Tue, 28 Jan 2003 18:52:36 +0000 |
| Subject: | #21925 [Bgs]: Should allow dots in global variables name | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-31490@lists.php.net to get a copy of this message | ||
ID: 21925
User updated by: mikep@oeone.com
Reported By: mikep@oeone.com
Status: Bogus
Bug Type: Variables related
Operating System: RedHat
PHP Version: 4.2.0
New Comment:
I think this deserves another look.
If the reason that . get converted to _ is because of variable names
(happens with register_globals = on) and register_globals is being
recommended to be OFF, then it seems logical to me that I should be
allowed to access my variables as $_POST["variable.name"]
Please allow someone else to look at this. I'd like a second opinion
on this bug. (If two people say that it shouldn't be, then I'll be OK
with that. However, I think this is a good idea, and IS a bug in PHP,
or will be when register_globals won't even be allowed (hopefully
soon!)) I've also posted a message to php.dev for a discussion.
Previous Comments:
------------------------------------------------------------------------
[2003-01-28 12:39:18] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
PHP variable do not support '.' characters in their name, therefor '.'
cannot appear as is inside variables passed via GET/POST/COOKIE/ENV.
------------------------------------------------------------------------
[2003-01-28 12:18:43] mikep@oeone.com
I think that in the global $_POST that PHP should not convert my "." to
"_" automatically.
Eg. I had a form and posted a form element with
id="calendar.defaultview", and I'd like to be able to access that with
$_POST["calendar.defaultview"].
I realize that it would be inconsistent with the variable name if
register_globals is on, but now that its being deprecated, this
deserves another look.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21925&edit=1