php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22172 Error parsing POST data
Submitted: 2003-02-11 12:37 UTC Modified: 2003-02-11 17:03 UTC
From: pete at mdsc dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.3.0 OS: Red Hat 8.0 i386
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: pete at mdsc dot com
New email:
PHP Version: OS:

 

 [2003-02-11 12:37 UTC] pete at mdsc dot com
PHP 4.3 seems to be incorrectly interpreting POST data, try the script below.  This is under Apache 2.0.40 as provided by Red Hat.

<html>
<head>
  <title>Form Test</title>
</head>
<body>
<p><pre><?php print_r($_REQUEST); ?></pre></p>
<form method="post">
<div>
<input type="checkbox" name="test[]" value="One" /> One<br />
<input type="checkbox" name="test[]" value="Two" /> Two<br />
<input type="checkbox" name="test[]" value="Three" /> Three<br />
<input type="submit" name="submit" value="Submit" />
</div>
</form>
</body>
</html>

Choose all three checkboxes, and submit.  This is what I get:

Array
(
    [submit] => Submit
    [test] => Array
        (
            [0] => One
            [1] => Two
            [2] => Three
            [3] => Two
            [4] => Three
        )

)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-11 15:03 UTC] moriyoshi@php.net
Please try the solution mentioned in bug #18648.

 [2003-02-11 16:53 UTC] pete at mdsc dot com
I removed an AddType application/x-httpd-php directive from my httpd.conf, leaving the Add[Input|Output]Filter directives, and the problem disappears.
 [2003-02-11 17:03 UTC] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

The problem was the result of a misconfigured Apache 2, not a PHP bug.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 11 14:01:28 2024 UTC