From: [EMAIL PROTECTED]
Operating system: SunOS 5.8 + Windows 2000 Pro
PHP version: 4.2.3
PHP Bug Type: *General Issues
Bug description: Wrong $_REQUEST values
In this particular form case:
<FORM METHOD=POST ACTION="test2.php" enctype="multipart/form-data">
<INPUT TYPE="text" NAME="toto[a]"><BR>
<INPUT TYPE="text" NAME="toto[b]"><BR>
<INPUT TYPE="file" NAME="toto[c]"><BR>
<INPUT TYPE="submit">
</FORM>
we expect in $_REQUEST:
Array
(
[toto] => Array
(
[a] => a
[b] => b
[c] => Array
(
[name] => apple.jpg
[type] => image/pjpeg
[tmp_name] => C:\TEMP\PHPUPLOAD\php233.tmp
[error] => 0
[size] => 24777
)
)
)
and unfortunately we get:
Array
(
[toto] => Array
(
[name] => Array
(
[c] => apple.jpg
)
[type] => Array
(
[c] => image/pjpeg
)
[tmp_name] => Array
(
[c] => C:\TEMP\PHPUPLOAD\php234.tmp
)
[error] => Array
(
[c] => 0
)
[size] => Array
(
[c] => 24777
)
)
)
.......
--
Edit bug report at http://bugs.php.net/?id=19848&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19848&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19848&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19848&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19848&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19848&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19848&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19848&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19848&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19848&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19848&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19848&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=19848&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=19848&r=isapi