|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30956 Post data periods (.) being converted to underscores (_)
Submitted: 2004-12-02 04:47 UTC Modified: 2004-12-02 08:27 UTC
From: phpbugs at crumpton dot cx Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.0.2 OS: redhat 7.3
Private report: No CVE-ID: None
 [2004-12-02 04:47 UTC] phpbugs at crumpton dot cx
In the key/value pairs from posted data, periods (.) within the key name (ie, "") are being converted to underscores (_) (ie, "var_name=some+data").

$HTTP_RAW_POST_DATA contains the correct urlencoded data with the periods (.).  $_REQUST, $_POST, and $HTTP_POST_DATA, however, all contain keys with the periods (.) replaced as underscores (_).

Note: The "Reproduce code:" section requires "always_populate_raw_post_data = On" in php.ini to see the $HTTP_RAW_POST_DATA... You will, however, see the mangled $_POST variable either way.

Reproduce code:
        header("Content-type: text/plain");
        print_r($HTTP_RAW_POST_DATA . "\n");
<form method="post">
  <input type="text" name="" value="some data" />
  <input type="submit" value="submit" />

Expected result:
    [] => some data

Actual result:
    [var_name] => some data


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-02 08:28 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Sep 24 04:03:36 2021 UTC