Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100116 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87147 invoked from network); 29 Jul 2017 23:35:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jul 2017 23:35:47 -0000 Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.46 as permitted sender) X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.214.46 mail-it0-f46.google.com Received: from [209.85.214.46] ([209.85.214.46:36093] helo=mail-it0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A2/C1-07025-FCB1D795 for ; Sat, 29 Jul 2017 19:35:44 -0400 Received: by mail-it0-f46.google.com with SMTP id v205so94885698itf.1 for ; Sat, 29 Jul 2017 16:35:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=EWzQ/wYe4UFm0oTidfKP+dipIeeMlO/0TKb6dJxJpDQ=; b=t2ADCCOqXoMXnGvrnSCzT2znHibd7susqgYx6yw+qLLSckK00qh8/Gi7YgBdwHx/Zv mvN3mpuBU4FU9zoQLtDJ8e77IfPiebXx6SMp7xyKX5lv87UchRjzwCBZj987R5sBPSdP e1EktmbxIeGZRnF0ZRoY645jO7KOGOXbOSJQWv/IKs9x8H6C0S4heo9HIXWfAtuFFG34 NE0leUuskDG+MHcnZ6r5JK/XP3TTPXZ9VWwVVmFjYS+J5CID/Jye1rluBYeX9C0ng7Vg A4QTBDu4TLB9vb51l1zs5pW2QSZM7gqnCBXOoa5tyAZKQs0viGkMjw8S2SYTH46ZYANh 3ByA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=EWzQ/wYe4UFm0oTidfKP+dipIeeMlO/0TKb6dJxJpDQ=; b=W6493f5ciIQydrkffI2QNIIfA+Ikf3Vpays1tfLpUvKxqDlwJCo16/P8dEIp+mt+Yy KZQYYNldJD3J8PF8esvbDLPD4fhKOm3ibWMl8eMqXRVcViNTDvppJuoh/pLqY2wRQGN7 BEJImIN5FbZ7frYAcjzfi/qnH1d7uAyq1vpRa0rnu8JiXmkAek0qF9p5QFiBzgkQ/Oam pK0RBrp0S2fvdlsY55kCOW+/3rGRMzrmrtXf+Bb73cdlLFZypTMInFtPS1MytjFVeoZx Y/lH9BP3PVrCKArFEQffpR+YHJI17jcmWprBTkY4HhAs30VO6CLPKZIWJHRbS30iHsk5 /+zg== X-Gm-Message-State: AIVw111nHVEYRuGEhkLXs5Mqr7z3kUJn8yt81F2FwPRzALZU/geFPfvj AU4lzms0mLdEpsqgM7TbhIyiNfcu/g== X-Received: by 10.36.36.74 with SMTP id f71mr13691297ita.60.1501371340903; Sat, 29 Jul 2017 16:35:40 -0700 (PDT) MIME-Version: 1.0 Sender: kalle.php@gmail.com Received: by 10.107.168.144 with HTTP; Sat, 29 Jul 2017 16:35:40 -0700 (PDT) In-Reply-To: <12777d61-3277-413b-c60b-12c8c75bd76f@gmail.com> References: <12777d61-3277-413b-c60b-12c8c75bd76f@gmail.com> Date: Sun, 30 Jul 2017 01:35:40 +0200 X-Google-Sender-Auth: GDsYDIlUWuuLYQQ6NJWlK8IJgDc Message-ID: To: Stanislav Malyshev Cc: Sara Golemon , PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Changes to SuperGlobals for PHP 8 (was: something about session_start...) From: kalle@php.net (Kalle Sommer Nielsen) Hi 2017-07-29 22:17 GMT+02:00 Stanislav Malyshev : > I've seen scenarios where it is very useful. Sure, you can always build > another layer of indirection and solve it this way, but it's just making > people do more work for no reason. I don't see any problem that would solve. Sure it seems useful, but I see it more as a hack if you are just writing to superglobals anyway, if you need to change something you should do that with your own logic instead. If its something simple such as your code assumes $_GET['id'] always is available, then either write it to a temp variable. I know many applications nowadays are not written with an excess amount of globals everywhere, but writing to a global without explicitly declaring you want to, can cause some hard to debug cases if one function modifies a global and another assumes an unmodified value. I'd like to see that gone. -- regards, Kalle Sommer Nielsen kalle@php.net