Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76606 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24709 invoked from network); 17 Aug 2014 11:38:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Aug 2014 11:38:47 -0000 Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.174 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 209.85.220.174 mail-vc0-f174.google.com Received: from [209.85.220.174] ([209.85.220.174:45059] helo=mail-vc0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BB/E0-18958-54490F35 for ; Sun, 17 Aug 2014 07:38:47 -0400 Received: by mail-vc0-f174.google.com with SMTP id la4so4732546vcb.33 for ; Sun, 17 Aug 2014 04:38:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=fGOc0kfDsxK7CXCRKEPIR27PIlk/PGKVSP3uy4isTGU=; b=iVnYgBbIo/RllSi9yo2BpCGICdglqj6PtEyODpmx/b6gs12W8DL965hyVRja8lIeIB IGAaC225twOfwBVwAyOoR5LJbny5L3GROosM2of2xMnNNmUbWnI0jJNcTYbMCrl40hlI 3c3p+QDrtMSBVOEV7PQElf52gPfrc+lAq/VO7MQ6TUaDFd9pnJ3HdYbKQ/s0dvhCvnN0 npdWPtIgVh2reEob0dp23GbEKD0JV/24N/dYrAuOmCYg3L8I3d4XWNyjpImtXuYGqBnQ FoYLb70r75TyyzZSJp9FhlVoaOxglkik28uvfFxHkK9C1+GBp71leQ79Pd5dYtDtdazM C27g== X-Received: by 10.52.164.199 with SMTP id ys7mr452201vdb.42.1408275522515; Sun, 17 Aug 2014 04:38:42 -0700 (PDT) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.220.30.70 with HTTP; Sun, 17 Aug 2014 04:38:02 -0700 (PDT) In-Reply-To: References: <20140817021822.9AEBE261C47@dd15934.kasserver.com> Date: Sun, 17 Aug 2014 13:38:02 +0200 X-Google-Sender-Auth: OtAyDQjJuxTCtUyQKEB7HmpS1bk Message-ID: To: David Zuelke Cc: Thomas Bley , PHP Internals , cw@daverandom.com, park.framework@gmail.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Native support - PUT request, multipart form data From: jpauli@php.net (Julien Pauli) On Sun, Aug 17, 2014 at 12:49 PM, David Zuelke wrote: > That does not make any sense; applications could accept XML, CSV or whate= ver else just as well. > > The original proposal is not very useful. $_GET contains parsed query str= ing info, $_POST contains parsed HTTP request body information if the media= type is application/x-www-urlencoded or multipart/form-data. Deserializing= that makes sense as the rules for it are in the HTTP spec. > > $_PUT/$_BODY/$_DATA would then have to contain the raw body contents, at = least if the media type isn't one of the above, for consistency. That'd sav= es the file_get_contents() call, and given how a request handler uses at mo= st once, I'm not sure such a change is worth it. I'd say, why not ? The patch should be trivial after all. $_INPUT ? However, I'm not +1 to add this into a revision version. Julien.P