php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32109 POST data is empty
Submitted: 2005-02-25 14:17 UTC Modified: 2005-03-05 17:41 UTC
Votes:5
Avg. Score:4.6 ± 0.5
Reproduced:5 of 5 (100.0%)
Same Version:3 (60.0%)
Same OS:5 (100.0%)
From: nlopess@php.net Assigned: moriyoshi
Status: Closed Package: Apache2 related
PHP Version: 5CVS-2005-02-25 OS: windows
Private report: No CVE-ID:
 [2005-02-25 14:17 UTC] nlopess@php.net
Description:
------------
The POST form data is always empty, while GET works.

In linux with PHP 5.1 built: Feb 20 2005 14:51:15, I don't have any problem.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-27 17:32 UTC] nlopess@php.net
I had apache 2.0.52 and I upgraded it to 2.0.53 and still doesn't work.

Any simple script like the above helps to reproduce:
<?
print_r($_POST);

if(!empty($_POST['t'])){
    file_put_contents('bugs.txt',$_POST['t']);
    echo "ok";
}else{
    echo '<body><form method="POST" action="bugs.php"><textarea rows="10" name="t" cols="92"></textarea></p><p><input type="submit" value="submit"></form></body>';
}
?>
 [2005-03-04 01:38 UTC] csaba at alum dot mit dot edu
I am also experiencing this problem - I was OK with the Feb 19 PHP snapshot, but by Feb 28, it was not working on my Win XP Pro, SP 2 system (nor was it working with March 1 nor March 3 builds).  It happens with both POST data and also when enctype='multipart/form-data'.  HOWEVER, as near as I can tell $HTTP_RAW_POST_DATA is populated.
I am using Apache 2.0.53 and I have php.ini in c:\windows.
Besides that I have the following 4 files in c:\winapps\php.net:
php.exe, php-win.exe, php5ts.dll, and php5apache2.dll, a fairly minimalistic setup.  My path includes c:\winapps\php.net

If you can tell me how I can get the win32 builds for Feb 20-Feb 25, I can test each of them to see when the problem crept in.  I couldn't figure this out from http://snaps.php.net/win32

Csaba Gabor from Vienna
Note also that http://bugs.php.net/bug.php?id=31417 is very similar
 [2005-03-04 19:10 UTC] nlopess@php.net
yep $HTTP_RAW_POST_DATA is populated but neither $_POST or $HTTP_POST_VARS are.
 [2005-03-04 21:16 UTC] moriyoshi@php.net
Maybe I'm to blame and to look into this.

 [2005-03-04 23:51 UTC] moriyoshi@php.net
What were your configure params? Which MPM was used by 
Apache2?

 [2005-03-05 09:37 UTC] nlopess@php.net
I think this is a windows only problem.
I'm using the winnt MPM.

The config is always the same. I just upgrade the binaries.
 [2005-03-05 17:41 UTC] moriyoshi@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Fri Apr 18 05:03:21 2014 UTC