#23596 [Opn->Bgs]: _POST variables disappear when relatively large data submitted
ID: 23596
User updated by: ashpool7 at yahoo dot com
Reported By: ashpool7 at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: Windows NT 4.0 SP6a
PHP Version: 4.3.1
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2003-05-14 11:12:41] 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-13 17:38:42] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2003-05-12 14:50:24] 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";
}
?>
--------------------------------------------------
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23596&edit=1
Thread (4 messages)