Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78803 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16724 invoked from network); 6 Nov 2014 09:56:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Nov 2014 09:56:18 -0000 Authentication-Results: pb1.pair.com header.from=figureonecpr@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=figureonecpr@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.178 as permitted sender) X-PHP-List-Original-Sender: figureonecpr@gmail.com X-Host-Fingerprint: 209.85.212.178 mail-wi0-f178.google.com Received: from [209.85.212.178] ([209.85.212.178:53155] helo=mail-wi0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 59/40-28384-1C54B545 for ; Thu, 06 Nov 2014 04:56:17 -0500 Received: by mail-wi0-f178.google.com with SMTP id bs8so929555wib.5 for ; Thu, 06 Nov 2014 01:56:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=B6gSwjzzXRu08WZbH0lP3ukRg2njS+g1+tOfZgnKnCs=; b=L3va3v8za6pxemtGnq4muQDI3jD+hHnTU588LlDdOXNtXaYj3sdH92Npo9+I1V1AKH +T1R4onox9ot1SmTp9PFJwxmwzMoXWEMlRxi+Le/9/B5/QsKBsJhzQJDwKZ5CVD2ZaaZ sXOhLff4hMnjq86Jv/gUvHQFh+zN6JMRteXP/dceog+gAmsxwfVt0ISqQb4FBrJvQCHd gMq+4dmCZkLqwOHzBjHbSZMdddOTRXgfUiIcDmxba8OmxvF8yr6om/eZCTyAglDmJSGB 1AuB5dpC1AVi+91aI2Fb+wFZIFhnw0nWkoYI0t4BLvXeky483RRXKaf1wQsUqxg4/h4j lm6g== MIME-Version: 1.0 X-Received: by 10.194.143.7 with SMTP id sa7mr3972516wjb.110.1415267774439; Thu, 06 Nov 2014 01:56:14 -0800 (PST) Received: by 10.216.194.132 with HTTP; Thu, 6 Nov 2014 01:56:14 -0800 (PST) In-Reply-To: References: <1DDB6E05-3143-4A74-8B13-AF85222579BA@ajf.me> <468730E8-4C38-49A3-A61A-59E107313D79@ajf.me> <20141106030333.5955732.90669.642@gmail.com> Date: Thu, 6 Nov 2014 04:56:14 -0500 Message-ID: To: Sherif Ramadan Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] New Standardized HTTP Interface From: figureonecpr@gmail.com (Sanford Whiteman) > PUT is not intended to necessarily store the request entity body on the f= ile > system. Its intention is to store the entity body at the request URI. I never said it was. I used the expression "store at the URI" about 10 ten times on this topic. You are arguing in bad faith by putting words in my mouth. Stop. In a barebones implementation with just an HTTPd, PUT does mean the filesystem, which gives an easy example of how incredibly semantically different it is from POST. Most people do not understand the concept unless you give them a simple example. > So this unfounded claim that decomposition should not happen within PHP a= t the request level, isn't a justification for prohibiting PHP from decompo= sing the body. I made no such claim. I maintain that decomposition not be *required to happen* within PHP. I couldn't care less if you make it optional and don't use the $_POST superglobal. I've said this over and over. Expose the core MIME parser to the user. That'll make it easily used by frameworks, or via auto_prepend_file. Do not do it automatically for all requests. > For example, if the Content-type designated in the request indicates appl= ication/binary it is safe to say that PHP should not attempt to disassemble= the input stream beyond applying > the decoding from the Content-encoding = header (which may actually happen at the web server level). However, in thi= s event it would make it a lot more convenient for the client if the > enti= ty is stored in $_FILES where its access is still more manageable through t= he receiving code. I noted this case in the other thread and let it be laughed off, but I actually believe that this is a relatively sensible option, since it doesn't require any decoding. For that matter, I ninety-percent-kiddingly wondered if an application/tar body could be decomposed and its constituent files put into $_FILES, since that's a case we actually use daily. Again under user control, and not for every request to a given PHP install, but a kind of pre-superglobal API would be cool. Of course I know it'll never happen and I'm fine with that.