Dmitry Stogov wrote:
> In your example :
> 
> <?php
> namespace Foo;
> import Blah::Exception;
> $a = new Exception;
> ?>
> 
> "new Exception" refer to "Blah::Exception" and will fail if such class
> doesn't exists.
> 
> "import Blah::Exception" creates an alias with short name "Exception" only
> for current file (it doesn't creates "Foo::Exception")
> 
> May be I didn't understood the question. :)

http://bugs.php.net/42859 has a further example

with patches for PHP 6 and PHP 5 in the report.

Greg

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to