ID: 19848 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Critical -Bug Type: *General Issues +Bug Type: HTTP related -Operating System: SunOS 5.8 + Windows 2000 Pro +Operating System: *any -PHP Version: 4.2.3 +PHP Version: 4.2.3,4,3.0-dev New Comment:
Actually $_REQUEST should contain $_FILES too (according to docs) but it doesn't seem to work, not in HEAD either. And in this case, it propably is pretty hard to get work 'correctly' since the $_FILES array structure is what it is. Previous Comments: ------------------------------------------------------------------------ [2002-10-10 10:43:02] [EMAIL PROTECTED] On Windows, I used a 4.2.1 PHP version and 2.0.39 Apache version. On SunOS, a 4.2.3 PHP version and 1.3.26 Apache version are used. The results are identical The $_POST variable is uncomplete: Array ( [toto] => Array ( [a] => a [b] => b [c] => C:\TEMP\PHPUPLOAD\php23F.tmp ) ) ------------------------------------------------------------------------ [2002-10-10 10:28:20] [EMAIL PROTECTED] grr, need a new trackball ------------------------------------------------------------------------ [2002-10-10 10:27:29] [EMAIL PROTECTED] I think a dupe of http://bugs.php.net/17958 as $_REQUEST is a combination of $_GET, $_POST, $_COOKIE. Are you using Apache 2 and can you verify what's posted in there? ------------------------------------------------------------------------ [2002-10-10 10:27:28] [EMAIL PROTECTED] I think a dupe of http://bugs.php.net/17958 as $_REQUEST is a combination of $_GET, $_POST, $_COOKIE. Are you using Apache 2 and can you verify what's posted in there? ------------------------------------------------------------------------ [2002-10-10 10:10:42] [EMAIL PROTECTED] 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 this bug report at http://bugs.php.net/?id=19848&edit=1