Martin Alterisio wrote:
> It's also not possible to reliably bundle files even if you could have
> multiple namespaces declarations as, correct me if I'm wrong, import
> statements affect the whole file, there is no way to "unimport", a
> name clash could still occur.

OK, I'll correct you: you're wrong.  The patch resets import at each
namespace declaration.  Each chunk (as far as namespace and import
declarations) acts as its own file.  global variables, constants, and
everything else that would carry over from file to file if included
continues to function normally.

The point of the patch is that it functions the same way as separate or
as 1 file.

Greg

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

Reply via email to