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

Ondřej Surý ondrej at debian.org
Mon Nov 8 14:57:55 UTC 2010


severity 602812 normal
tag 602812 +unreproducible
thank you

1) please read an info on bug severities:
http://www.debian.org/Bugs/Developer#severities

2) have you tried setting bigger post_max_size? Your test script works
just fine on my system. I guess it will be more a configuration issue
on your side than some arbitrary hidden limit in a php5.

Ondrej

On Mon, Nov 8, 2010 at 13:56, Richard Limanowski
<r.limanowski at nttcable.de> wrote:
> 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
>
>
>
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-php-maint
>



-- 
Ondřej Surý <ondrej at sury.org>
http://blog.rfc1925.org/





More information about the pkg-php-maint mailing list