Req #65250 [Opn->Csd]: PHP form input parsing - Support all HTTP verb for php://input
Edit report at https://bugs.php.net/bug.php?id=65250&edit=1
ID: 65250
Updated by: arpad@php.net
Reported by: matti dot jarvinen at nitroid dot fi
Summary: PHP form input parsing - Support all HTTP verb for
php://input
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: URL related
Operating System: *
PHP Version: 5.4.17
-Assigned To:
+Assigned To: arpad
Block user comment: N
Private report: N
New Comment:
php://input can always be used when enable_post_data_reading=0 (since 5.4) and is just the request
body - other verbs can already be used.
Previous Comments:
------------------------------------------------------------------------
[2013-07-19 23:07:13] yohgaki@php.net
php://input is for standard input. Therefore, it does not make sense using
php://input other than HTML forms. i.e. HTML forms send vars via POST method and
POST method vars are sent to standard input.
Since PHP only supports GET/POST, we may support other HTTP verbs PUT/DELETE/etc.
------------------------------------------------------------------------
[2013-07-12 13:19:15] matti dot jarvinen at nitroid dot fi
Description:
------------
On some occations PHP has to work with data sent from different sources. Form data parsing with
complex data (arrays) differs from the PHP in Ruby, ASP, JSP and the like. It would be highly
beneficial for PHP to have _always_ possibility to determine custom input parser.
Currently php://input can be only used for this end if input type isn't
"multipart/form-data".
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65250&edit=1
Thread (3 messages)