>> 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.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to