#19848 [NEW]: Wrong $_REQUEST values
From: capelli@in2p3.fr
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
Thread (15 messages)
- capelli at in2p3 dot fr
- msopacua@php.net#19848 [Opn->NoF]: Wrong $_REQUEST values
- msopacua@php.net#19848 [NoF]: Wrong $_REQUEST values
- msopacua@php.net#19848 [NoF->Fbk]: Wrong $_REQUEST values
- capelli at in2p3 dot fr#19848 [Fbk->Opn]: Wrong $_REQUEST values
- sniper@php.net#19848 [Opn->Ctl]: Wrong $_REQUEST values
- ich at ersiees dot com#19848 [Com]: Wrong $_REQUEST values
- ferdhie2k at yahoo dot com#19848 [Com]: Wrong $_REQUEST values
- imajes@php.net#19848 [Ctl]: Wrong $_REQUEST values ($_FILES appearance is wacky)
- sniper@php.net#19848 [Ctl]: Wrong $_REQUEST values ($_FILES appearance is wacky)
- mzeitler at accrisoft dot com#19848 [Com]: Wrong $_REQUEST values ($_FILES appearance is wacky)
- sterling@php.net#19848 [Ctl->Csd]: Wrong $_REQUEST values ($_FILES appearance is wacky)
- spamlanzz at graffiti dot net#19848 [Com]: Wrong $_REQUEST values ($_FILES appearance is wacky)
- philip@php.net#19848 [Csd->Opn]: Wrong $_REQUEST values ($_FILES appearance is wacky)
- sniper@php.net#19848 [Opn->Csd]: Wrong $_REQUEST values ($_FILES appearance is wacky)