#23596 [Fbk->Opn]: _POST variables disappear when relatively large data submitted
| From: | ashpool7 at yahoo dot com | Date: | Wed, 14 May 2003 16:12:42 +0000 |
| Subject: | #23596 [Fbk->Opn]: _POST variables disappear when relatively large data submitted | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-39651@lists.php.net to get a copy of this message | ||
ID: 23596
User updated by: ashpool7 at yahoo dot com
Reported By: ashpool7 at yahoo dot com
-Status: Feedback
+Status: Open
Bug Type: *General Issues
Operating System: Windows NT 4.0 SP6a
PHP Version: 4.3.1
New Comment:
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)
Previous Comments:
------------------------------------------------------------------------
[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