Re: [RFC] Restrict $GLOBALS usage

From: Date: Fri, 04 Dec 2020 11:04:19 +0000
Subject: Re: [RFC] Restrict $GLOBALS usage
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-112407@lists.php.net to get a copy of this message
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://wiki.php.net/rfc/restrict_globals_usage Yes please! This will allow removing some black magic from Symfony's VarDumper component, which detects these "copies" of $GLOBALS: https://github.com/symfony/symfony/blob/31ee43a8c67897a2f61782060965f5c8a81f58a2/src/Symfony/Component/VarDumper/Cloner/VarCloner.php#L144-L155 Nicolas

« previous php.internals (#112407) next »