This would be a good idea, if implemented with a compatibility layer to be removed later.
::php ::str ::arr ::ob etc ::ext ::mysql ::mysqli Userland code can then use a namespace such as ::app, or just use the global namespace with no worries. Probably not going to happen, atleast not for a while, due to compatibility issues, but just a thought. On Wed, 2007-12-05 at 17:43 +0100, Sebastian Bergmann wrote: > Matthias Pigulla schrieb: > > Given that it was technically feasible, (future) core classes should > > be in namespaces as well. > > Or > > - Introduce namespaces in PHP 6 > - Move all functions and classes that are now global into > (per-extension) namespace(s) > - Add a fallback mechanism that looks up mysqli_query() as query() > in the MySQLi extension's namespace for PHP 6.0, drop that BC > layer in PHP 6.1 > > Not saying that I would want this (I don't think I do), just mentioning > the option. > > -- > Sebastian Bergmann http://sebastian-bergmann.de/ > GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69 > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php