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.开发者_Python百科 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?
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.
SPL is a good start in this direction.
http://php.net/manual/en/book.spl.php
精彩评论