Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101764 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25454 invoked from network); 4 Feb 2018 22:43:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Feb 2018 22:43:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.178 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.128.178 mail-wr0-f178.google.com Received: from [209.85.128.178] ([209.85.128.178:34906] helo=mail-wr0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9E/E7-49805-C7C877A5 for ; Sun, 04 Feb 2018 17:43:08 -0500 Received: by mail-wr0-f178.google.com with SMTP id w50so27813226wrc.2 for ; Sun, 04 Feb 2018 14:43:08 -0800 (PST) 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=WbQi9VVpfmrn8Fy8Ts8FEAnZD+ZWAMhMcVcxQMCBS88=; b=EbG62SPDmPFiRexT4wUsJvHsAGwbzJJ3W1uyUElRRbi62wEgQIyb3fT64FzvdcUYZE 1PUfSjTRS6i/DOPqfXStqTThHFd9CI34GACUE4lNb31LAs3gOCOy6DmEK9ZPr7v5+qM9 U682hxAqjp1gGS0Oxl4rcJLtqOfKO6DkdEUN6bmrmbdBVAocduZITTXKN0iZpstE/jBz 4l9KHY8gWb1i6MNVrm6/EhAL5kVgcYJ0CD21VfP60up7i2R3Dk3z2CRqlLIkFOw0/gBu 47DFLcitHSc/vt5C52It8Gp4e0HCOWEqoRRAGaa7v9BwnJTMrgDUcdCkHI/5kUyGzC34 CtfQ== 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=WbQi9VVpfmrn8Fy8Ts8FEAnZD+ZWAMhMcVcxQMCBS88=; b=gOZfIt5tRH8U/FPqu4rfBBQ4oE9fbYnq3ybUEv1PeMG/2cnksscD5jzt7u491xb95r FCsRENXZA/faBQltT4qiWXx13H8Yw9NwoovnHK+nGrvA533z52/1r9iaPXzAtE2jRMO7 2QsOEWZEwJ58+uA665Th4x+CuZNgqU0NphCIp33UG/CS7mB5eGV2bF5FJ3L4EvVh5qde vQnKZ2u6V2lwAfvhpXSgicPVtZhIAt9avpgGr9uiZPaIkybX02EzXXp1YzJQAFlL1SXZ NZeGfN3twEsHV3z96lzXo8YTf/8ZiLjpp3B8UStgpsqVOvXLLYv/RPFsrxaFxATZPVCt kylA== X-Gm-Message-State: AKwxytd9CN3m6GGGnBbYb1jjqfePxQEtupCFMrIPoJmk9lTRCfa4Y1st Lwl0WgX5aeCcP8XVN1vtWFkCAa9x8Gi0ZAFGvhY= X-Google-Smtp-Source: AH8x225mkXWRO+2Ux/WblmH8y+UbMuCCk040Xwc0aVTB3nqNfgHsjirXFmsmY+FPqFwCQ9sNZ4UFLkI3NIWzQjYGlL0= X-Received: by 10.223.172.52 with SMTP id v49mr31772104wrc.125.1517784185375; Sun, 04 Feb 2018 14:43:05 -0800 (PST) MIME-Version: 1.0 Sender: morrison.levi@gmail.com Received: by 10.28.56.3 with HTTP; Sun, 4 Feb 2018 14:43:04 -0800 (PST) In-Reply-To: <07d9e3a0-d516-aa77-4818-ce8b02e8dd08@gmail.com> References: <07d9e3a0-d516-aa77-4818-ce8b02e8dd08@gmail.com> Date: Sun, 4 Feb 2018 15:43:04 -0700 X-Google-Sender-Auth: R57KRA-09Fpb-GzrgQ4xMD0XwsE Message-ID: To: Stanislav Malyshev Cc: Benjamin Eberlei , Wes , PHP Internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Deprecation of fallback to root scope From: levim@php.net (Levi Morrison) On Sun, Feb 4, 2018 at 2:56 PM, Stanislav Malyshev wrote: > Hi! > >> To get the same benefits (jit and such) wouldn't it be better to introduce >> a "use function root;" or similar statement or a declare() to specify this >> file imports all root functions? > > We already have this right now, and realistically speaking, who wouldn't > do that in their code instead of writing weird \strlen() code? Everybody > would configure their IDEs and so to insert this automatically. So we're > talking about RFC to make people work harder for what they already have > now and then end up in the same place we are already right now. I agree with Stas that this "use function root;" or whatever is pointless. >> was acted on at any time in the future. and in addition people will silence >> the notices on global error reporting level, because violations would > > And note also that we can't silence just this warning. Which means > people would have to silence *all* warnings, thus making all other > messages useless. This is not a good development and this is not what we > should be training users to do - saying "well, it's a warning, just > silence it" is the worth idea we could have. If we create a warning, > recommendation should be "it's important enough so we call your > attention to it, please deal with it", not "just silence it". If it's OK > in most cases (as opposed to rare exceptional cases) for it to be > silenced, it shouldn't be there in the first place. We have nearly zero E_STRICT warnings right now. Simply configure your error reporting level to omit E_STRICT if you don't want them. You are blowing this out of proportion.