#42249 [Opn->Bgs]: maximum of 200 fields in $_POST/$_REQUEST

From: Date: Wed, 08 Aug 2007 16:33:54 +0000
Subject: #42249 [Opn->Bgs]: maximum of 200 fields in $_POST/$_REQUEST
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-115895@lists.php.net to get a copy of this message
ID: 42249 Updated by: johannes@php.net Reported By: tp at tpsoftware dot nl -Status: Open +Status: Bogus Bug Type: *Web Server problem Operating System: OpenSuSE10 PHP Version: 5.2.4RC1 New Comment: This looks like an limitation from the Suhosin patch, please make sure Suhosin is disabled when reporting PHP bugs. See the Suhosin documentaiton on http://suhosin.org/ for more. Previous Comments: ------------------------------------------------------------------------ [2007-08-08 16:02:55] tp at tpsoftware dot nl Description: ------------ After updating from version 5.1.2 to 5.2.3 no more than 200 fields are being recognized in the $_REQUEST or $_POST array. Just sending 250 vars in a form results in just 200 variables. Reproduce code: --------------- <? if ($_POST['upload']==1) { echo "Count: " . count($_POST); exit(); } else { $inputvars = ""; for ($i=0;$i<250;$i++) { $inputvars .= "<input type='hidden' name='var".$i."' value='".$i."'>"; } ?> <html> <body> <form method='post' action='phpinfo.php'> <input type='hidden' name='upload' value='1'> <?= $inputvars?> <input type='submit' name='button' value='go'> </form> </body> </html> <? } ?> Expected result: ---------------- Count: 252 Actual result: -------------- Count: 200 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42249&edit=1

« previous php.bugs (#115895) next »