Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69436 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75094 invoked from network); 2 Oct 2013 06:59:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Oct 2013 06:59:19 -0000 Authentication-Results: pb1.pair.com smtp.mail=mike.php.net@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mike.php.net@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.173 as permitted sender) X-PHP-List-Original-Sender: mike.php.net@gmail.com X-Host-Fingerprint: 209.85.217.173 mail-lb0-f173.google.com Received: from [209.85.217.173] ([209.85.217.173:47237] helo=mail-lb0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 72/83-46515-644CB425 for ; Wed, 02 Oct 2013 02:59:19 -0400 Received: by mail-lb0-f173.google.com with SMTP id o14so385534lbi.4 for ; Tue, 01 Oct 2013 23:59:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=lQtJjaADBuXq3JtPo8gHLYrMirICQbJlpoO4o9JgOcA=; b=m+Xpowpmp1pN32G+ER4p/DlG0yIQkZljkFagQ3vWDY6dNtPeJAc0Re/CmPD1hAGev3 SoatG/ThDjWDYUAYrs/DSasLp3scd34LY1rPGEWrc30VRG5EhHErNAbabJCAyXpvqTUC Uk9vEBcShvRi8okAlkJbIV9FTjK2H6cOCL2HLrhZMFUAE1I30+vNYMSR35vdsvSDJhXs knCPbR3zPNO0YSHDf5k5a7Sv0jULMhJYvHajh3iWfuZcp66ZN5lcjMIvMafZWFKNKWKR ZU3SQCFylmcOzlWd3vJ5+KbkiQdrWU3RBaEYFqIqVgwXMonyxHBNUrWnButnTw8rxHC8 FxHA== MIME-Version: 1.0 X-Received: by 10.112.42.68 with SMTP id m4mr1018062lbl.4.1380697155769; Tue, 01 Oct 2013 23:59:15 -0700 (PDT) Sender: mike.php.net@gmail.com Received: by 10.114.184.19 with HTTP; Tue, 1 Oct 2013 23:59:15 -0700 (PDT) Date: Wed, 2 Oct 2013 08:59:15 +0200 X-Google-Sender-Auth: KZLzZZg5MDvNGYcDwOK3YMiQ3Wo Message-ID: To: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: HTTP supergloblas and request body/query (was: Parsing PUT data) From: mike@php.net (Michael Wallner) Since ever people are confused by _GET and _POST superglobals, because, despite their name, they do not (really) depend on the request method. Therefor I propose to phase out $_GET and name it $_QUERY and I propose to phase out $_POST and name it $_FORM (I'm not 100% confident with the latter yet, though). Further, I propose to remove the POST method restriction for handling request bodies and solely rely on the content type to trigger the parser(s). (*) There are already parsers for application/x-www-form-urlencoded and multipart/form-data in the core. One could think of providing an API to add content type handlers from extensions, ext/json may be an example, like it is hacked into pecl_http-v2. Thoughts, objections, insults? (*) We'd probably have to revisit all *post* INI variables, though. -- Regards, Mike