Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78357 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61476 invoked from network); 26 Oct 2014 21:25:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Oct 2014 21:25:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=florian@margaine.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=florian@margaine.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain margaine.com from 209.85.213.177 cause and error) X-PHP-List-Original-Sender: florian@margaine.com X-Host-Fingerprint: 209.85.213.177 mail-ig0-f177.google.com Received: from [209.85.213.177] ([209.85.213.177:33983] helo=mail-ig0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id ED/B0-56216-9B66D445 for ; Sun, 26 Oct 2014 16:25:13 -0500 Received: by mail-ig0-f177.google.com with SMTP id h18so1874311igc.10 for ; Sun, 26 Oct 2014 14:25:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=dkNEd1UVPDusvzg0rnjQkQaqVgjRFDtLfmzE/ULzZuA=; b=gwHXKIAVibQK6sg86oXiV2/Si39mo4v0OipOXqnuI2hk9oj52/2aukd5rgAnB+f//t Uz5gsYXNmkOOuTposrwGGhSBAGf8BMmTax+eoVWkj0Q86aSrrPatz5E6Qc8MNhJQu/44 xhiUjgw3SSLGbqwIkfQyIu/HaEY+2j2FWB8hAcalgnRH6Vd3mCGK87Mdek0he1TRWhLu TgJF6Yp97O7RmfXVtluJxmAJEG5UDHMiXSGjZAlomDJNokf2WcdyQbQT9mIDSIwquOx+ SyTICD/+dvtrd6eMKztf/XU0Jr7/vUtBOgEtaLXicsfcNN4OmJ+mzuusaq70brTDrWEB SqRw== X-Gm-Message-State: ALoCoQk7K53FPZ5Vx58Tuxrydd5QdIXbinbOTdblpRpXetyXDDVnhihYnh/USlJyhJXz9wq7x6gs X-Received: by 10.42.37.138 with SMTP id y10mr15365047icd.26.1414358710434; Sun, 26 Oct 2014 14:25:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.25.200 with HTTP; Sun, 26 Oct 2014 14:24:50 -0700 (PDT) X-Originating-IP: [89.92.205.106] In-Reply-To: <544D65F7.8070807@sugarcrm.com> References: <776669CE-9E8C-4069-9834-C7275CCA0EF4@ajf.me> <8CB055D4-F164-4DF3-B019-684BAE7E016E@ajf.me> <543D47C1.9050009@lerdorf.com> <543D4CE1.5000109@lerdorf.com> <543D6864.10508@gmail.com> <543D85E6.2020507@lerdorf.com> <57b7a3681d6c2c7ae123c8921b2d19d6@mail.gmail.com> <544D65F7.8070807@sugarcrm.com> Date: Sun, 26 Oct 2014 22:24:50 +0100 Message-ID: To: Stas Malyshev Cc: Dave , Zeev Suraski , Kris Craig , Rasmus Lerdorf , Rowan Collins , PHP internals list Content-Type: multipart/alternative; boundary=90e6ba6e8fd48551d605065a0c53 Subject: Re: [PHP-DEV] New globals for PUT and DELETE From: florian@margaine.com (Florian Margaine) --90e6ba6e8fd48551d605065a0c53 Content-Type: text/plain; charset=UTF-8 Hi! On Sun, Oct 26, 2014 at 10:21 PM, Stas Malyshev 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? > > > 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? > I think Rasmus made it clear what the original naming meant: it were form methods, not related at all to HTTP methods. > > -- > 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 > > Regards, -- Florian Margaine --90e6ba6e8fd48551d605065a0c53--