php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23596 _POST variables disappear when relatively large data submitted
Submitted: 2003-05-12 14:50 UTC Modified: 2003-05-14 12:19 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ashpool7 at yahoo dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.1 OS: Windows NT 4.0 SP6a
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ashpool7 at yahoo dot com
New email:
PHP Version: OS:

 

 [2003-05-12 14:50 UTC] ashpool7 at yahoo dot com
* Windows NT SP6a with all the patches

* Apache 1.3.27, PHP 4.3.1 as a module.  Mostly "reccomended" php.ini settings.

* Using the zip binary.

When using the code below, I get the "no filename" message, indicating that the POST variables have disappeared when the textarea is filled with over (aproximately) 1024K worth of data.  To reproduce, I used a single character to fill the textarea.

The post_max_size has not been altered from "8M", neither have any other such variables.  No LimitRequest* variables have been set in Apache's httpd.conf.


test.html------------------------------------------------

<html>
<body>
<form method="POST" action="bug.php">
<input type="hidden" name="filename" value="the file name">
<textarea rows="20" cols="80" name="contents">
</textarea><br>
<input type="submit" value="Save">
</form>
</body></html>

bug.php--------------------------------------------------

<?

if ( ! empty($_POST["filename"]) ) {
	reportError("No error");
} else {
	reportError("No filename");
}

function reportError($err_str) {
	if ($err_str == "" ) $err_str = "Unspecified";
	echo "<html><body>\n";
	echo "<h3>$err_str</h3>\n";
	echo "</body></html>\n";
}

?>

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-14 11:12 UTC] ashpool7 at yahoo dot com
Doesn't seem to fix it.  Still returns "no filename."

I also tested this on Windows 2000 SP3.  Same Apache and CVS PHP.  Similar results.

(additionally, I made a mistake in the earlier post.  It's 1 to 2K, not 1024K)
 [2003-05-14 12:19 UTC] ashpool7 at yahoo dot com
Profuse apologies!  After another round of inspection, the module in question was actually the Win32 mod_gzip, which would totally botch the variables (as noted and fixed in the v1.3.26.1a changelog).

My sincerest apologies.  I thought I was working with a vanilla system.

I hope this helps anyone with similar problems.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 16:01:35 2024 UTC