Re: [RFC][DISCUSSION] Deprecation of fallback to root scope

From: Date: Sun, 04 Feb 2018 21:00:12 +0000
Subject: Re: [RFC][DISCUSSION] Deprecation of fallback to root scope
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-101762@lists.php.net to get a copy of this message
On Sat, Feb 3, 2018 at 9:27 AM, Wes <netmo.php@gmail.com> wrote: > Hello PHPeople. I just published the RFC "Deprecation of fallback to root > scope". > > It is quite a substantial change, but as you can read in the RFC, can be a > (basically) transparent one. > I'm referring to the possibility to shim it in userland. Essentially, this > would move the feature from core to userland. > > I hope you like it. Let me know what you think. > > https://wiki.php.net/rfc/fallback-to-root-scope-deprecation 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? I am with stas that this will go towards a huge BC break if the deprecation 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 happen on a massive scale, inclusing the cost of them being raised dragging performance down. This will be a problem since other notices will go unnoticed.

« previous php.internals (#101762) next »