php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #24140 Uploaded file details no longer in _REQUEST
Submitted: 2003-06-12 00:16 UTC Modified: 2003-06-18 00:38 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: leigh at ozforces dot com Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 4.3.2 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: leigh at ozforces dot com
New email:
PHP Version: OS:

 

 [2003-06-12 00:16 UTC] leigh at ozforces dot com
Description:
------------
Since PHP 4.3 was released uploaded file details no longer appear in $_REQUEST.

Apart from breaking compatability for scripts that required this information to appear in $_REQUEST it also creates an unecessary special case.

Before this change you were able to have all form element values appear in the one location. In my view the point of the $_REQUEST variable was so you could have ALL form request information in the one location whether it was submitted via a GET, POST, or COOKIE. That is still the case except for the "file" element. PHP scripters now have a special case to deal with.

In some of my own code I have created some generic libraries I use a lot. They consist of a group of classes that describe each type of HTML form element. To keep things simple I have a base class that all other form elements inherit from. This base class contains all the code common to all form elements. I believe this is one of the objectives of OO programming.

However, I now have a special case in the "file" element. Code that previously could of been done in the parent class must now be overridden and recoded.

Sure this may not be a big deal, but it's messy, and uneccessary.

The following is a quote from your own manual about the _REQUEST variable:
"Variables provided to the script via *any* user input mechanism"


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-12 02:59 UTC] derick@php.net
This was changed because adding files to $_REQUEST was kinda broken before 4.3.0. From 4.3.0 uploaded files end up in $_FILES. This was a deliberate act, and that's why we're not going to restore it.

 [2003-06-18 00:38 UTC] leigh at ozforces dot com
I'm aware it was a deliberate act. I don't think that sort of thing accidently happens and then accidently gets put into the manual.

But you still haven't given a reason as to why this was changed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 20:01:35 2024 UTC