Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100107 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59925 invoked from network); 29 Jul 2017 16:52:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jul 2017 16:52:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.46 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.46 mail-wm0-f46.google.com Received: from [74.125.82.46] ([74.125.82.46:35176] helo=mail-wm0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4E/5F-40376-C4DBC795 for ; Sat, 29 Jul 2017 12:52:28 -0400 Received: by mail-wm0-f46.google.com with SMTP id m85so43931824wma.0 for ; Sat, 29 Jul 2017 09:52:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:from:message-id; bh=WojW6EDpnH3YJ28tkrL//ZJEje5dENgeMmFUr7Ra6Gg=; b=sHPkmlsoHIRY07TNpwep4exUHkN3Lt7G/7fNoWFS8uADeqYHhMaPFN7C7p7/ZAI1Bz FTWW5gkv/nW+54Nvvk9e2ykIB/d78q45epidaZ4MUkCCac8M3pWo73d3hbtD/w5GvcXW wBHlXkq57d/K/ULeFDsD8/HmlGSiXJnKVMRm176tC68/ZSFk5a6JinVlGy3dfOwhztoc 33liLrR1d+XjmHdHfcPBFddyGWDFvS/jtEr/ne3ZoPNqdW1QfVdibDmX/Q1U5ZXINDif x73/fOWFgaEi9XRvPkTlK2Ov3l6LoF06PvrUy/2Riwa4kxP/mlu/p7i0n4vUj2bsfbXT Lx8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:from:message-id; bh=WojW6EDpnH3YJ28tkrL//ZJEje5dENgeMmFUr7Ra6Gg=; b=WsU2W0HWxzSl9s9cFzHMtNQ5Zv6J+McGbsX+Shg27LN0tF33ZUPBOoGhaGMCB9gjdu xn4doeivsjSmU0juZrlbwUfo0JRmDdVC0BdH+ERaHe94dnQyv7x8r0DZiLdrA5V2CWNU cSY5O3hkHJ3/TMs11cAu2wR/Y84/6FLovtpI0ikBYTFCpFvIp7KnI7MH21F1TygUK0pz 27Rp2WiulmjptuXS/LlCt250NqZhLVz5cr4g8nAeTz2C5gFgWcVPtyaTnFJzfQ5wG4zh XYzGue5V1Ic739Uvqy6VIAyRH431A1ajby1RGSjLIgk8MTaQaM72VBhgkdLpRDTUfmt0 5Cxg== X-Gm-Message-State: AIVw113QlMpuTUaAEqcia6A9semkPTYkde8d0t1SYjt0ws59PnyZStHq 5SsoKoLdFG3l6vKFHqs= X-Received: by 10.28.12.195 with SMTP id 186mr7920709wmm.5.1501347145070; Sat, 29 Jul 2017 09:52:25 -0700 (PDT) Received: from [10.92.58.17] (94.197.120.150.threembb.co.uk. [94.197.120.150]) by smtp.gmail.com with ESMTPSA id h83sm1616653wmf.32.2017.07.29.09.52.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Jul 2017 09:52:24 -0700 (PDT) Date: Sat, 29 Jul 2017 17:52:19 +0100 User-Agent: K-9 Mail for Android In-Reply-To: <67.EC.40376.A469C795@pb1.pair.com> References: <72B777E0-9E71-4D63-A9D0-20FD62F1A187@gmail.com> <67.EC.40376.A469C795@pb1.pair.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: internals@lists.php.net,Andrea Faulds Message-ID: <18CBF3A9-DD0B-4B66-A2EF-046BE46FC7AF@gmail.com> Subject: Re: [PHP-DEV] Changes to SuperGlobals for PHP 8 (was: something about session_start...) From: rowan.collins@gmail.com (Rowan Collins) On 29 July 2017 15:05:57 BST, Andrea Faulds wrote: >Hi Rowan, > >Rowan Collins wrote: >> On a slight tangent, I consider $_SERVER to be a broken pile of >"we'll just shove this in here and hope for the best", and I will >oppose any attempt to convert it into an object which doesn't >reorganize its keys to be sane, documented, and as cross-platform as >the SAPI layer can make it=2E :P > >$_SERVER makes sense to me, its content is what the CGI environment=20 >variables would be (or are, if you're actually using CGI in 2017)=2E >Those=20 >are standardised=2E But what does a standardised CGI variable list have to do with anything wh= en you're running under an Apache module, or one of our two fast-cgi SAPIs,= let alone if we ever want event-based or asynchronous SAPIs to be a thing?= =20 If you want to know the URL the user requested, you have to know about the= subtle differences between half a dozen different variables which will be = populated differently, or not at all, depending on your configuration=2E So= me of this is inevitable because there are too many different ways of achie= ving the same thing, but at least some of it is known by the SAPI, which no= netheless blindly populates $_SERVER with whatever the hosting server provi= ded=2E And talking of name mangling, CGI mangles the request HTTP headers in its = own quirky way, when they should just be a structure of their own separate = from this generic environment=2E That particular quirk can even cause secur= ity problems, IIRC=2E Regards, --=20 Rowan Collins [IMSoP]