#18961 [Csd->Fbk]: POST size more than 6k fails

From: Date: Tue, 03 Sep 2002 23:11:03 +0000
Subject: #18961 [Csd->Fbk]: POST size more than 6k fails
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18348@lists.php.net to get a copy of this message
ID: 18961 Updated by: sniper@php.net Reported By: tater@potatoe.com -Status: Closed +Status: Feedback Bug Type: Scripting Engine problem Operating System: Mac OS X 10.1.5 / Darwin 5.5 PHP Version: 4CVS-2002-08-17 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2002-08-19 08:58:43] iliaa@php.net This bug has been fixed in CVS. In case this was a PHP problem, 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/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2002-08-17 22:12:21] tater@potatoe.com Submitting POST variables with a total size of more than about 6000 bytes results in some kind of overflow. This is on Apache, compiled as a static module, with 4.3 CVS. (ZE and ZE2 behave the same.) Part of the POST is read by the PHP script, the rest seems to go to Apache as if it was a request - it shows up in the access log or error log as such anyway. This problem does NOT happen with the php-4.3.0-dev-zend2-alpha2 release. Here is a form to demonstrate: <form enctype="multipart/form-data" method="post"> <?php $x = str_pad('', 6000, 'x'); ?> <input type=hidden name=x value="<?php echo $x; ?>"> <input type=submit> </form> <form method="post"> <?php $x = str_pad('', 6000, 'x'); ?> <input type=hidden name=x value="<?php echo $x; ?>"> <input type=submit> </form> <?php foreach ($_POST as $k => $v) { echo "<li>_POST($k) length = ".strlen($v)."\n"; } ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18961&edit=1

« previous php.bugs (#18348) next »