Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78436 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88102 invoked from network); 28 Oct 2014 18:17:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Oct 2014 18:17:22 -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 74.125.82.54 as permitted sender) X-PHP-List-Original-Sender: figureonecpr@gmail.com X-Host-Fingerprint: 74.125.82.54 mail-wg0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:44593] helo=mail-wg0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6A/3B-21571-1BDDF445 for ; Tue, 28 Oct 2014 13:17:22 -0500 Received: by mail-wg0-f54.google.com with SMTP id m15so102235wgh.41 for ; Tue, 28 Oct 2014 11:17:18 -0700 (PDT) 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; bh=82f2J2MZ84A4bCKW3wIuvGc7ZatlZsXV3kB+FF6Dqwo=; b=z4HJ28yIlWitTsYHoVHdmSIurpDxTc6ok3rFfk4PUwN8k0McVUpGJBIeY3yz/x14z7 c7N6+oLV0aUxoA2saYfc9lgmO/2kvkhOJBaELdSC300GUhJhsPxnNVxpIg1W+RTTQmsC LrHEF4PyolKQrY4Qfjq2ErTnQODzdFSjyLg3d9i4xgpXzWeWrehNKqbOGflSk+vbEAdD ioE8GkTCkO8zM84OqWjtemLdnrpvvppDnFg0zKvQHBrmqgB1wCnCB78fV2LN7caGoheT LpsNE8bj/AW+m10nxNSmhuf9NOSMnlHZAjSLsbAjrse7Bc6r9jDj7s+GibAGW6B5/yww 5rSQ== MIME-Version: 1.0 X-Received: by 10.180.86.38 with SMTP id m6mr6768863wiz.65.1414520238091; Tue, 28 Oct 2014 11:17:18 -0700 (PDT) Received: by 10.216.194.132 with HTTP; Tue, 28 Oct 2014 11:17:17 -0700 (PDT) In-Reply-To: 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: Tue, 28 Oct 2014 14:17:17 -0400 Message-ID: To: Dave Cc: PHP internals list Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] New globals for PUT and DELETE From: figureonecpr@gmail.com (Sanford Whiteman) > $_FILES (whose name is already method-agnostic) The name appears method-agnostic but the implementation obviously isn't. It works with multipart/form-data, which is tightly coupled with POST, but which isn't the only way to transfer files, not by a long shot. If you ignore the HTTP method you're being completely arbitrary if you still only decode form-data into $_FILES. For example we PUT and POST bytearray/binary files thousands of times per day. You can PUT application/xml as a valid file, heck, you can PUT a tarball, a great way to send multiple files. Would the enhanced $_FILES be populated in those cases? And if not, why not? -- S.