Re: [Concept] Flip relative function lookup order (global, then local)

From: Date: Fri, 02 Aug 2024 19:01:47 +0000
Subject: Re: [Concept] Flip relative function lookup order (global, then local)
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-124725@lists.php.net to get a copy of this message
Hi, I propose the following alternative approach: * establish a restricted whitelist of global functions for which the performance gain would be noteworthy if there wasn’t any need to look at local scope first; * for those functions, disallow to define a function of same name in any namespace, e.g.: https://3v4l.org/RKnZt That way, those functions could be optimised, but the current semantics of namespace lookup would remain unchanged. —Claude

« previous php.internals (#124725) next »