Re: Re: Parsing PUT data
| From: | Andrea Faulds | Date: | Tue, 24 Sep 2013 16:16:30 +0000 |
| Subject: | Re: Re: Parsing PUT data | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-69322@lists.php.net to get a copy of this message | ||
On 24/09/2013 17:12, Daniel Lowrey wrote:
An inability on your part to write working code doesn't equate to "PHP should implement this for me"I am not the tone police, but I don't think such comments are helpful.
Let me be clear: I'm not suggesting we should ignore useful functionality because of poor design decisions made in the past but I am saying that we should avoid compounding those mistakes by building on top of them. Would a $_PUT superglobal be helpful? Sure. But is it a good solution to underlying problem? Not really.Indeed. I think what we really need is something like $_REQUEST but for the request body exclusively ($_BODY). We'd then have $_GET for query parameters and $_BODY for request body (POST, PUT, PATCH, etc.) parameters. While at it, why not add a better version of $_GET which doesn't replace certain characters with undescores? -- Andrea Faulds http://ajf.me/