Re: Re: Is it possible to create a global namespace alias?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 5, 2010 at 8:41 AM, Matt Palermo <palermomatt@xxxxxxxxx> wrote:

> I'm assuming there is no way to make a global alias.  Can anyone
> confirm/deny this?
>

I reread the documentation on namespaces, and from what I can tell this is
no way to do it. Each file maintains its own active namespace *at compile
time*. This means you can't even get around it with eval() or including
another script to set it.

I can't say I'm positive someone won't find a way around it, but short of an
extension I don't see one.

David

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux