ID:               17739
 Comment by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: all
 PHP Version:      4.2.1
 New Comment:

This is not an IE-only problem. Happens here with Mozilla too, and
every other browser I tried.

I sniffed the actual protocol exchange, and confirmed that if 5 options
are selected, only those 5 are sent to the server. PHP duplicates all
except the first item. i.e. 1 submitted: 1 seen, 2 submitted: 3 seem,
3:5, 4:7, 5:9, etc. This is most definitely looks like a PHP bug. (PHP
4.3.0, Apache 2.0.43)


Previous Comments:
------------------------------------------------------------------------

[2002-10-07 11:19:10] [EMAIL PROTECTED]

I could trace the same behaviour in a different script: IE5.0,
multipart/formdata and a special char copied from a Winword document.

Indeed, I wonder, if it is IE5.0 that is doubling the array, or there
is any strange thing (in IE5.0) that causes php to double the array
when receiving it. The first is of course a bug in IE5.0. The latter
would be one in php.

Maybe a developer can sniff the transmitted code and trace if IE5.0 is
already doubling the value(s) or if this happens in php's
value-handling.

René
PS: For the time being we use array_unique() to filter out the doubled
values in our array but this is not helpful if double values are
allowed in an array.

------------------------------------------------------------------------

[2002-09-29 14:10:17] [EMAIL PROTECTED]

The same happened with me, but the files which was uploaded duplicated,
but the others didn't. Those was also corrupted, two variables bacame
three.

------------------------------------------------------------------------

[2002-06-13 13:27:11] [EMAIL PROTECTED]

It happens because some guy at Microsoft was drunken.

Infact you are triggering a situation where the IE 5.0
simply sends every form field 2 times.




------------------------------------------------------------------------

[2002-06-13 12:05:00] [EMAIL PROTECTED]

this may be true, but do you know how this happens or how I can analyze
the problem, because I don't get $HTTP_RAW_POST_DATA when enctype is
set to "multipart/form-data", even when I set
always_populate_raw_post_data = On.

My workarround for now is to put the select post results through
array_unique (),

------------------------------------------------------------------------

[2002-06-13 10:27:03] [EMAIL PROTECTED]

If it only happens with IE, or one version of IE, then it's not a bug
in PHP but yet another bug in IE.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/17739

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

Reply via email to