> I am aware that if users really want to create a reference to the locally
> defined "$this" variable they can hack around it. As you noted they won't
> be able to change the real object though, i.e. EG(This) but only the local
> $this symbol table entry. As far as I'm concerned, the behavior is
> undefined and I don't want to do any run-time checks for this, as it'll
> just slow things down.
> Post 5.0 we might want to change "$this" so that it isn't defined in the
> symbol table at all but will be dealt with at compile-time. This was my
> initial implementation but due to problems of reference assignments I
opted
> for the current implementation. Maybe after investigating this again, I
> might find a different way of doing.
> So the bottom line is, let's leave it the way it is, and remind me after
> 5.0 to take another look. However, it is quite possible that I'll come up
> with the same conclusion that the current implementation is the best one.
>
Fair enough, I'll mark 28491 suspended and try to sum up your comments for
the reporter.

-Sara

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

Reply via email to