From:             [EMAIL PROTECTED]
Operating system: SOLARIS 2.8
PHP version:      4.0.6
PHP Bug Type:     *General Issues
Bug description:  BUG with parse_str

It seems to be a mistake with the function parse_str() applyed to
$QUERY_STRING.

URL: http://mycomputer/myscript?delete=10&delete=12

HTML CODE:
<Input type="checkbox" name=delete[] value=10>
<Input type="checkbox" name=delete[] value=12>

And (not the winner is :-) ) parse_str($QUERY_STRING) returns in the
environment an array $delete with a size of 4 (instead of 2) !! Some
programmer forget to divide a result by 2, or there is something I forget
?

(TEST : $i=0; while (isset($delete)) { print "$delete[$i]\n"; $i++ } ... I
obtain 4 writings with this test (i wanted not use the sizeof function for
my test)).

Regards
-- 
Edit bug report at: http://bugs.php.net/?id=11985&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to