Hi Ralph, I still like the proposal.
Am 08.09.2012 um 07:12 schrieb Ralph Schindler <ra...@ralphschindler.com>: [...] >>> But yes, I agree that runtime resolution only duplicates existing >>> behavior, so it isn't really necessary (you could argue thought that >>> self::class similarly also only replicates the existing __CLASS__). It >>> would be nice for consistency in my eyes, but I'm good without it too > > The current patch allows for the following: > > self::class -> resolves to name in active_class_entry > static::class -> resolves to FCALL get_called_class() > parent::class -> resolves to FCALL get_parent_class() > > I would have liked to have done parent::class w/o FCALL but the > active_class_entry's parent is empty even when inside of a class extending > another class. > [...] What I find absolutely confusing is the use of Class vs. CLASS vs. class for constant names. Let’s limit the translation to FQCN. cu, Lars -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php