Hi!

> Fantastic question.  I am unsure how to handle this.  Currently, it will 
> simply resolve those names against the rules (I am sure this is the 
> wrong behavior.)  So,
> 
>     namespace Foo\Bar { var_dump(self::class); }

This should produce an error outside of class context, I think. Inside
of class context, self & parent should work, I think, but static can't
work as it's caller-dependent.

-- 
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227

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

Reply via email to