|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-08-19 08:58 UTC] iliaa@php.net
[2002-09-03 18:11 UTC] sniper@php.net
[2002-09-03 18:11 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 09 20:00:02 2025 UTC |
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"; } ?>