#38953 [Opn->Bgs]: unexpected input name of html modified in $_REQUEST
| From: | derick@php.net | Date: | Mon, 25 Sep 2006 17:42:39 +0000 |
| Subject: | #38953 [Opn->Bgs]: unexpected input name of html modified in $_REQUEST | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-102652@lists.php.net to get a copy of this message | ||
ID: 38953
Updated by: derick@php.net
Reported By: thbley at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: Win32
PHP Version: 4.4.4
New Comment:
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 can't have variable names with .'s in them (from the
register_globals times). And we can't "fix" it either as that would
break scripts now.
Previous Comments:
------------------------------------------------------------------------
[2006-09-25 17:33:44] thbley at gmail dot com
Description:
------------
The name of the input field name gets modified in the $_REQUEST field.
Array
(
[192_168_0_4] => test
)
should be:
Array ( [192.168.0.4] => test )
I don't know if it's a bug, but I can't explain it any further by my
knowledge.
Reproduce code:
---------------
<?php
echo "<pre>";
print_r($_REQUEST);
echo "</pre>";
echo "should be:<br>\n";
print_r(array("192.168.0.4"=>"test"));
?>
<form method="get">
<input name="192.168.0.4" value="test">
</form>
Expected result:
----------------
Array
(
[192.168.0.4] => test
)
Actual result:
--------------
Array
(
[192_168_0_4] => test
)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38953&edit=1