Re: Analysis and Patch for Bug#28491

From: Date: Sun, 23 May 2004 18:41:22 +0000
Subject: Re: Analysis and Patch for Bug#28491
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-10053@lists.php.net to get a copy of this message
> 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

« previous php.internals (#10053) next »