Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100125 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37341 invoked from network); 30 Jul 2017 18:19:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jul 2017 18:19:23 -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.43 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.43 mail-wm0-f43.google.com Received: from [74.125.82.43] ([74.125.82.43:35615] helo=mail-wm0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B8/26-07025-B232E795 for ; Sun, 30 Jul 2017 14:19:23 -0400 Received: by mail-wm0-f43.google.com with SMTP id m85so58581088wma.0 for ; Sun, 30 Jul 2017 11:19:23 -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=apO9ZERIlnaieLpXYcm9RFj8g3K+GOXF6cpCw0zicFk=; b=TK9fV6tR+JaWLsghu0vWD/+E2NgIql5nHsk8lw/hGUPodJJh3STRPwkkTwVoQJhbwI LmrZ0+Bb2k41bA5QguSPGjGLRNnxXOgsGR/PdJYm5Loz4GIPCUpoYn2qOcWhATxPrThJ HCOKP72y4icrr4jG8vcOm15MCp1ANDx9rrSAxRH6fjm8Qt3Pf+lRLRDj8L8Pg/zgE5FI POzFmzEgEOobbgvP8Zpf9DETOVqfnlADgT5Pi/oRMENesYxJYiFrA2z76uQuuEazVP7F mlTnVxfALli5ojUpveNZZ/5Sje87IJirqkxeKDEUjs8hPkbCaI27ThIcJBnSx0bJqZ+i Ej/Q== 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=apO9ZERIlnaieLpXYcm9RFj8g3K+GOXF6cpCw0zicFk=; b=RtS39eYzyZKArYwoGrrb40vQJWMVPI1Q8Dp053GWWFyLCEkSqTv1m1MPNxstGmwons SI3UJH1pDQQL97Gvb0LMo+r5ixiW33JdiMuK50Fms1VP2hAZH/Ci7kU2iGtfCz1uxO2P cOvPktf0BiUgoYMGJ49/OtwFyEJDjrNdkN6YTfK3SrDCyFTiHgX7ORHGRddVEC6UhOde 3LGeZdaSyAOUXk7DPjCmaJt3NxORksj6UwUfonc3wlKM992eJ9ShjstdflIv0KMWVcjK UDT+5UAeYa3F0YGrrlvLG9Xmk4aA01ZYS0PbN9lmA5Iu6KkD88rOS5Ilyth+VsTi254T kGNA== X-Gm-Message-State: AIVw1125gS/SO9moapwm67EuP1bp/M1swXLYlqGWo8hQDiZJjnKfKKvN /vWjt43kBfZ7emfL X-Received: by 10.28.8.144 with SMTP id 138mr10328964wmi.8.1501438759986; Sun, 30 Jul 2017 11:19:19 -0700 (PDT) Received: from android-c07b90b023759a5a.home (host109-149-135-231.range109-149.btcentralplus.com. [109.149.135.231]) by smtp.gmail.com with ESMTPSA id c141sm8522582wmd.44.2017.07.30.11.19.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Jul 2017 11:19:19 -0700 (PDT) Date: Sun, 30 Jul 2017 19:19:17 +0100 User-Agent: K-9 Mail for Android In-Reply-To: References: <72B777E0-9E71-4D63-A9D0-20FD62F1A187@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: PHP internals Message-ID: <231D3A47-F8BE-47C8-B1BB-B6F320BED367@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 21:22:30 BST, Stanislav Malyshev wr= ote: >> 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 > >You cannot make it cross-platform, as it is specifically made for >environment consisting the current platform, making it cross-platform >would just force you to create yet another one which contains the bits >that didn't fit into "cross-platform"=2E I'm fine with having an interface for access to low-level, platform specif= ic details, but that's not how I have mostly seen $_SERVER being used=2E Mo= stly, people want specific details, like the requested URL and the HTTP hea= ders sent, all of which should be trivial for SAPIs to provide in a standar= d, user-friendly format=2E I wouldn't be surprised if some SAPIs are carefu= lly mangling the data into fake CGI format, only for userland code to unman= gle it for actual use=2E My point was that if we were considering a compatibility break anyway, we = should look at separating out those common use cases into something higher = level=2E Having done that, we could even allow the low-level "raw server va= rs" (not under the name $_SERVER) to drift even further apart, rather than = sticking to CGI rules from 20+ years ago=2E Regards, --=20 Rowan Collins [IMSoP]