Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100131 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54709 invoked from network); 30 Jul 2017 22:54:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jul 2017 22:54:46 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.169 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.128.169 mail-wr0-f169.google.com Received: from [209.85.128.169] ([209.85.128.169:34797] helo=mail-wr0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D4/78-07025-5B36E795 for ; Sun, 30 Jul 2017 18:54:46 -0400 Received: by mail-wr0-f169.google.com with SMTP id 12so172831849wrb.1 for ; Sun, 30 Jul 2017 15:54:45 -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=UMEqFlXuqOXD+gReQnpEjt7pnmOtFwu9JUO2H+dUzHw=; b=L7q/Kn69MGMnPVDT73SyTPXWO6+nMEUMD1UFC/D/QK0JNeYx06TlYdQWkX7BH2uOxb jhrmTu8KuIHECNP9BirCIVIgQMU7gQ9eoe0GUTUSkKE4cNecHEDWG3z0iPK6baEjkFa/ nstnhsaYdetaVKVtMb4hDXLoEozkrMR1DRKo93I3jpr6B+D1elxPSCm9vSWwz4xB/8qy CulR3X0p1/dmTnoHo2g1/JouM4N8kxWAIBqRQvYUM7lPY+SkcgAxrAHlMs0GR8JPSRkp lhvr7x1wtR5j3In6P+C9jCjQPmYy5FcoUvAFfPOv3ksNJ0M115mz7jwq2L8Z0vVX5eeD K/HA== 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=UMEqFlXuqOXD+gReQnpEjt7pnmOtFwu9JUO2H+dUzHw=; b=X5FFC1uEBb0iUABfHbf6xc6fK3cSlatJ06bngJvNND7DJaqsr6BvAhj8G3MNtrBTmo 66N/TCh8N5hcJQL7PXOHLx/gBZpAeK0Kkajov7ChwgxbLBtmG9Ehx+EFTsT3dV0p/YPs hEQkLJp7iBWjIzhRItkJS/26n7SLjwlRy1qxYC+1yQ+Vqy5t1ZG2sRFHXHbItHIe5/zV YJN1S8yIqiAhXQ3hJAIBjImcsEcv9qSN9b2jjX+sjHEyveyuUYkNe+nzP2nhO0/i/7gy Xl87CJvE6ulYfdNbHfmw6DtWDUoPneSlZ/0vDjQMvayWNRm6huP2q3MSilIltoLO5exv lTyQ== X-Gm-Message-State: AIVw110z5u8mCxqqL/cHOKpsyhwHimJa1Z8jbu87h36/SivoQUo4uXg+ CTrrvrJl+uvToUv8 X-Received: by 10.223.147.100 with SMTP id 91mr6610931wro.70.1501455282831; Sun, 30 Jul 2017 15:54:42 -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 x98sm43524308wrb.47.2017.07.30.15.54.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Jul 2017 15:54:41 -0700 (PDT) Date: Sun, 30 Jul 2017 23:54:39 +0100 User-Agent: K-9 Mail for Android In-Reply-To: <6c5dd09b-904b-b518-bd89-50cd28cbeaae@gmail.com> References: <72B777E0-9E71-4D63-A9D0-20FD62F1A187@gmail.com> <231D3A47-F8BE-47C8-B1BB-B6F320BED367@gmail.com> <6c5dd09b-904b-b518-bd89-50cd28cbeaae@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: PHP internals Message-ID: <6F7528B9-5F52-4E74-A04E-C59554E80570@gmail.com> Subject: Re: [PHP-DEV] Changes to SuperGlobals for PHP 8 From: rowan.collins@gmail.com (Rowan Collins) On 30 July 2017 20:21:01 BST, Stanislav Malyshev wr= ote: >Hi! > >> 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 > >I'm completely in agreement with you here, except for "compatibility >break" part=2E The good news is that you do not need any compatibility >breaks! If you want to create API that allows easy standardized access >to the common denominator of web requests - and I do not disagree it >would be a good thing! - you do not need to change _SERVER=2E A good point=2E Of course, "if" doesn't have to be symmetrical, so perhaps= I should say that if we plan to break compatibility, we should definitely = do this; if we don't plan to, we should maybe do it anyway=2E >> Having done that, we could even allow the low-level "raw server vars" >> (not under the name $_SERVER) to drift even further > >Why not under the name _SERVER? In general, I always think that when splitting something, you should renam= e both parts, not keep one=2E Code using the retained name will continue to= partly work but have odd bugs, rather than completely failing until someon= e reviews which replacement is appropriate=2E =20 But in reality, you might want to keep $_SERVER around for compatibility a= nyway, so there'd be no point having 3 different versions of the same thing= =2E The only advantage of a new name at that point would be if we decided t= o get rid of the shared nothing, global request state model=2E Regards, --=20 Rowan Collins [IMSoP]