Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69509 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70585 invoked from network); 7 Oct 2013 17:19:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Oct 2013 17:19:06 -0000 Authentication-Results: pb1.pair.com header.from=rdlowrey@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rdlowrey@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.179 as permitted sender) X-PHP-List-Original-Sender: rdlowrey@gmail.com X-Host-Fingerprint: 209.85.223.179 mail-ie0-f179.google.com Received: from [209.85.223.179] ([209.85.223.179:54154] helo=mail-ie0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DE/CA-24156-90DE2525 for ; Mon, 07 Oct 2013 13:19:06 -0400 Received: by mail-ie0-f179.google.com with SMTP id e14so16558056iej.38 for ; Mon, 07 Oct 2013 10:19:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=/ecVp/A5ZgW1X+okqdqaDpj9ANLub9+fDQ2X5HIBcRs=; b=rKexmRJCOxSfVLaC08Z3zqPuRj0oHDmWCmlQEl2/VwTZTb3xdpU4PVw6WYxZ8DuF4t X5gMwDBjG9puEtf6Ehw3akcxnlp9Dho+XEurMtpAfEu8Lg4+qHUAFKvtnggngkAmlq5t 6x0yfw6FOFJTr3T/+AMcUpRSRGone2wYtsQhIWIwcsMk6wertYWEMT+heOMeIXM3EtEq fi0zVI/kMHikK/vjvMO7DcIm4STeFhXzZif9WpwhRZJqo75JE0UBT546frBodtDwMNKM hFtlKRvf+KQchHTW+J0jEaeobQHHSvDvjzkM4BKK6axYiYpgBfiFKn63ScCNV8VBsHrw V1Sw== MIME-Version: 1.0 X-Received: by 10.43.138.198 with SMTP id it6mr1026800icc.75.1381166343370; Mon, 07 Oct 2013 10:19:03 -0700 (PDT) Received: by 10.50.228.48 with HTTP; Mon, 7 Oct 2013 10:19:03 -0700 (PDT) Date: Mon, 7 Oct 2013 13:19:03 -0400 Message-ID: To: "internals@lists.php.net" Cc: rowan.collins@gmail.com Content-Type: multipart/alternative; boundary=001a11c2ef0245bfbc04e829d95d Subject: Re: Re: HTTP supergloblas and request body/query (was: Parsing PUT data) From: rdlowrey@gmail.com (Daniel Lowrey) --001a11c2ef0245bfbc04e829d95d Content-Type: text/plain; charset=ISO-8859-1 >> You can't efficiently model an HTTP request with associative arrays. Period. > The fact is that for 99% of use cases, yes you can, and developers > happily do so. Leaky abstraction is leaky. If this is truly an efficient model of the HTTP request then why do we fragment it out into $_SERVER and $_COOKIES and $_FILES and $_POST and $_GET and php://input? I don't know what your definition of "efficiently model" is, but it must be different from mine. Array Oriented Programming !== design. > without building a whole HTTP framework into the core. I'm devoutly anti-framework and I don't think anyone is actually advocating this. If you read closely I'm arguing *against* adding more superglobals. I'm also against changing the names of the existing arrays as any improvement is far outweighed by the massive BC implications of such a change. I personally don't care whether or not a better request model is implemented in core -- I've already unlearned the bad-habits ingrained at the language-level. --001a11c2ef0245bfbc04e829d95d--