Re: [PHP-DEV] [RFC] Restrict $GLOBALS usage

2020-12-04 Thread Sebastian Bergmann
Am 04.12.2020 um 11:52 schrieb Nikita Popov: https://wiki.php.net/rfc/restrict_globals_usage Yes, please. The code you found in PHPUnit (both PHPUnit itself as well as sebastian/global-state) that would be affected by this can probably be removed (in a future version of PHPUnit that requires

Re: [PHP-DEV] [RFC] Restrict $GLOBALS usage

2020-12-04 Thread Paul M. Jones
> On Dec 4, 2020, at 04:52, Nikita Popov wrote: > > Hi internals, > > I would like to propose the following RFC, which restricts certain rare > usages of $GLOBALS. This change will improve performance, reduce internal > implementation complexity, and fix a very large class of bugs relating to

Re: [PHP-DEV] [RFC] Restrict $GLOBALS usage

2020-12-04 Thread Hans Henrik Bergan
if this gets rid of a significant amount of implementation complexity or runtime overhead, i'm all for it, and don't think i've ever seen code like $GLOBALS = []; before, given that it's technically a BC break, would have been nice as a 8.0.0 thing, but i hope it's small enough for an 8.x instead

Re: [PHP-DEV] [RFC] Restrict $GLOBALS usage

2020-12-04 Thread Nicolas Grekas
Hello Nikita, > I would like to propose the following RFC, which restricts certain rare > usages of $GLOBALS. This change will improve performance, reduce internal > implementation complexity, and fix a very large class of bugs relating to > $GLOBALS handling in internal functions. > > https://wi

[PHP-DEV] [RFC] Restrict $GLOBALS usage

2020-12-04 Thread Nikita Popov
Hi internals, I would like to propose the following RFC, which restricts certain rare usages of $GLOBALS. This change will improve performance, reduce internal implementation complexity, and fix a very large class of bugs relating to $GLOBALS handling in internal functions. https://wiki.php.net/r