Re: AW: [PHP-DEV] Re: RFC: Dropping Namespace

From: Date: Wed, 05 Dec 2007 18:35:01 +0000
Subject: Re: AW: [PHP-DEV] Re: RFC: Dropping Namespace
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-33754@lists.php.net to get a copy of this message
On 05.12.2007, at 17:43, 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
What about adding namespaced aliases for internal classes as a start (basically: class spl::FileInfo extends SplFileInfo) and drop the old names (SplFileInfo) in PHP6 and keep only the new ones.

« previous php.internals (#33754) next »