Req #61439 [Opn]: POST and other methods input data handling
| From: | mike@php.net | Date: | Tue, 20 Mar 2012 09:01:37 +0000 |
| Subject: | Req #61439 [Opn]: POST and other methods input data handling | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-168640@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61439&edit=1
ID: 61439
Updated by: mike@php.net
Reported by: martin dot koranda at gmail dot com
Summary: POST and other methods input data handling
Status: Open
Type: Feature/Change Request
Package: *General Issues
-Operating System: windows
+Operating System: *
PHP Version: 5.4.0
Block user comment: N
Private report: N
New Comment:
I second that. Actually I've sitting an unfinished proposal in my Inbox' Drafts
which addresses this issue.
BUT, I'm not thinking about php.ini, but SAPI code shouldn't care about the
request method, but the request body's content type. And there should be an API
to register content-type handlers.
Previous Comments:
------------------------------------------------------------------------
[2012-03-19 17:36:38] martin dot koranda at gmail dot com
Description:
------------
when sending multipart/form-data via a POST method, PHP internally parses all
variables into $_POST and files into $_FILES. but the parsing is not done with any
other method (PUT,PATCH,PROPFIND ..)
additionally, sending POST with multipart/form-data makes php://input unavailable.
so there is no universal parsing solution which covers all methods.
there should be a setting option (php.ini) where i can determine which particular
methods i want the internal parser run for (eg. "parse_input_methods =
POST,PUT,PATCH")
and/or there should be an option for disabling that internal parser completely.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61439&edit=1