ID:               40000
 Updated by:       [EMAIL PROTECTED]
 Reported By:      bertrand at epistema dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: linux debian
 PHP Version:      4.4.4
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

This has been filed many times... and it's not a bug.


Previous Comments:
------------------------------------------------------------------------

[2007-01-02 13:51:06] bertrand at epistema dot com

Description:
------------
Can someone please add more information to bug 34578 ?

The only two places in the documentation that refers to the fact that
PHP replaces dots with underscores in variable names are
http://fr.php.net/manual/en/language.variables.predefined.php#64336 and
http://fr.php.net/manual/en/language.variables.external.php but doesn't
really help on the why of this behaviour...

Are dots not valid in variable names ? Since when ?

Reproduce code:
---------------
<?php

echo '<pre>what : <br>' . print_r($_GET, true) . '</pre><br>';

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<form method="GET">
<input type="hidden" name="test.one" value="1" />
<input type="hidden" name="test.two" value="2" />
<input type="submit" name="submitMe" value="Click me" />
</form>

</body>
</html>


Expected result:
----------------
Array
(
    [test.one] => 1
    [test.two] => 2
    [submitMe] => Click me
)

Actual result:
--------------
Array
(
    [test_one] => 1
    [test_two] => 2
    [submitMe] => Click me
)


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=40000&edit=1

Reply via email to