Re: Idea: Function autoloading using dummy namespaces

From: Date: Mon, 18 Jul 2016 00:20:43 +0000
Subject: Re: Idea: Function autoloading using dummy namespaces
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-94542@lists.php.net to get a copy of this message
>> I think a better option is to try to solve this in 8 by unifying how >> functions and classes (and interfaces and traits) work in namespaces. >> Ideally the lookup behavior should be the same and all that differs >> are the symbol tables being looked in. > > > Are you suggesting that we require global function references to be written > as fully qualified names? This would be a huge BC break for namespaced code. Not necessarily, but yes that is an option. Class like types could also fall back to global namespace. Even though this change probably would not break any code I am aware of (since it fails at runtime and seems unlikely to be relied on) I'd still rather make that in a major version.

« previous php.internals (#94542) next »