Re: Migrating PHP classes to built in namespace

From: Date: Thu, 04 Jun 2015 21:17:20 +0000
Subject: Re: Migrating PHP classes to built in namespace
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-86489@lists.php.net to get a copy of this message
Hi Marc, On Thu, Jun 4, 2015 at 6:04 PM, Marc Bennewitz <dev@mabe.berlin> wrote: > This one is not compatible with current code as you have to alias the PHP > namespace to the root one before using full classes like \DateTime. > Right. We are better to have PHP namespace for internal classes/functions first, then introduce "as \" few years later. i.e. PHP classes/functions exist in both \ and \php namespace during migration period or we may user INI switch for migration. PS: I like a lower case "php" much more than upper case "PHP" ;) > I'm neutral on this :) Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#86489) next »