Re: New globals for PUT and DELETE
| From: | Will Fitch | Date: | Sun, 26 Oct 2014 21:30:12 +0000 |
| Subject: | Re: New globals for PUT and DELETE | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-78358@lists.php.net to get a copy of this message | ||
> On Oct 26, 2014, at 4:21 PM, Stas Malyshev <smalyshev@sugarcrm.com> wrote:
>
> Hi!
>
>> The only way to do this in PHP now is write a userland function that parses
>> multipart form data, which is non-trivial. I had written one, but would
>
> It is true that PUT data need to be parsed, however it is not true you
> have to implement MIME parsing from scratch. There are frameworks that
> implement that. Not everything must be written in C. But if you want C,
> doesn't pecl/http already have the required bits?
100% agree. Perhaps focusing on getting pecl/http v2 added as ext or core should be the real
discussion: https://wiki.php.net/rfc/pecl_http
<https://wiki.php.net/rfc/pecl_http>.
>
>> Having the ability to access the data provided in $_POST for other methods
>> is ideal (by whatever means: $_PUT, $_FORM, get_parsed_form_data(), etc).
>
> There are a lot of HTTP verbs - PUT, DELETE, TRACE, PATCH... And what if
> you want to do WebDAV? Wouldn't having separate superglobal for each be
> taking it a bit too far?
>
> --
> Stanislav Malyshev, Software Architect
> SugarCRM: http://www.sugarcrm.com/
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>