ID:               21925
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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

Reply via email to