[php-maint] Bug#602812: I can reproduce it
Mattias Nordstrom
mnordstr at debian.org
Tue Jan 11 14:09:32 UTC 2011
Hi,
This seems to be an actual bug. On a freshly installed Squeeze box
normal PHP applications fail as forms don't work with array fields over
1000 elements. This also happens on my sid development box. I installed
an original source PHP 5.3.3 and there it doesn't happen == works.
My test code:
== BEGIN (filename: form-test.php) ==
<html>
<body>
<?php
$count = 2000;
if (!empty($_REQUEST['test'])) {
print "Count: ".count($_REQUEST['test']).", should be $count.<br><br>\n";
print_r($_REQUEST);
}
?>
<form action="form-test.php" method="post">
<?php
for ($i=0; $i<$count; $i++) {
echo "<input type='hidden' name='test[]' value='$i' />\n";
}
?>
<input type='submit' name='submit' value='submit'></form>
</body>
</html>
== END ==
If this is an actual bug it is quite serious as it can easily cause data
corruption in databases among other things.
Regards,
Mattias Nordström
More information about the pkg-php-maint
mailing list