With the introduction of Object-Oriented and Namespacing capabilities in PHP, I am loving the new found cleanliness of PHP code that can be produced. The annoying thing though is that the core of PHP is still cluttered, unorganized mess of functions.

Are there any initiatives to organize the PHP core and "common" libraries into namespaces and classes?

Accepted Answer

There's been some discussion, but no real will -- the PHP dev team is too short for the size of the project and there are other priorities. You should note that it that would break backwards compatibility with older scripts, even if the current global names are left as is. See here.

You might want to see the RFC that proposes the use of namespaces for internal classes and its discussion in the internals mailing list here and here.

Written by Artefacto
This page was build to provide you fast access to the question and the direct accepted answer.
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki