From: bertrand at epistema dot com Operating system: linux debian PHP version: 4.4.4 PHP Bug Type: Unknown/Other Function Bug description: dots in variable names are replaced with underscore
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 bug report at http://bugs.php.net/?id=40000&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40000&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40000&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40000&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40000&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40000&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40000&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40000&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40000&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40000&r=support Expected behavior: http://bugs.php.net/fix.php?id=40000&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40000&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40000&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40000&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40000&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40000&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40000&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40000&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40000&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40000&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40000&r=mysqlcfg
