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

From: Date: Wed, 21 Aug 2024 06:05:49 +0000
Subject: Re: [Concept] Flip relative function lookup order (global, then local)
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Tue, Aug 20, 2024 at 8:26 PM Christian Schneider
<[email protected]> wrote:
>
> Am 20.08.2024 um 17:14 schrieb Levi Morrison <[email protected]>:
> > Keep in mind that qualifying
> > every global function is annoying but probably can be somewhat
> > automated, and will bring better performance. So again, this improves
> > the existing code even without upgrading.
>
> Just to be sure: Would code *not* using namespaces also have to qualify global function calls?
> I admit that I somewhat skimmed the discussion so I might have missed that point.

Code that isn't in a namespace is in the global namespace. So no, such
code does not have to qualify the global function calls.


Thread (112 messages)

« previous php.internals (#125084) next »