[php-maint] Bug#602812: php5: a posted array limited to 999 elements

Richard Limanowski r.limanowski at nttcable.de
Mon Nov 8 12:56:03 UTC 2010


Package: php5
Version: 5.3.2-2
Severity: important

Posting the content of a form containing more than 1000 checkboxes
yields an array of maximum 999 elements. Here ist a test-case:

<?
if (isset($_POST['Action']) && ($_POST['Action'] == 'do_it')) {
   echo count($_POST['SEL']);
}
else {
  echo "<form method=post><input type=submit name=Action value=do_it>\n";
  for ($i = 0; $i <= 2000; $i ++) 
    echo "$i <input type=checkbox name='SEL[]' checked value=$i>\n", 
  echo "</form>\n";
}
?>

Regards
Richard Limanowski

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages php5 depends on:
ii  libapache2-mod-php5           5.3.2-2    server-side, HTML-embedded scripti
ii  php5-common                   5.3.2-2    Common files for packages built fr

php5 recommends no packages.

php5 suggests no packages.

-- no debconf information





More information about the pkg-php-maint mailing list