Re: Re: [RFC] Access to aliases definition by reflection

From: Date: Thu, 30 Oct 2014 13:50:19 +0000
Subject: Re: Re: [RFC] Access to aliases definition by reflection
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-78468@lists.php.net to get a copy of this message
On Thu, Oct 30, 2014 at 2:43 AM, Miloslav Hůla <miloslav.hula@gmail.com> wrote: > Dne 13.10.2014 14:55, Miloslav Hůla napsal(a): >> >> I've written an RFC which proposes to expose a namespace aliases/imports >> for user-land code. > > > Good morning internals, > > it has been two weeks since I announced this RFC in this list. I hope all > the questions and remarks have been answered. If so, I would like to open > voting process in next week. > > https://wiki.php.net/rfc/aliases_by_reflection > > (thread of discussion > http://php.markmail.org/thread/oqcifqndca4a5tj6) I also don't think this feature is needed. In comments, simply use fully qualified names. Additionally, I really don't see how these are related to each other: use Library\Http; class C {} $rc = new ReflectionClass('c'); var_dump($rc->getDefinedAliases()); /* array(1) { ["http"] => string(12) "Library\Http" } */ How is ReflectionClass C related to Library\HTTP at all? Definitely a -1 from me.

« previous php.internals (#78468) next »