Re: [PHP-DEV] Analysis and Patch for Bug#28491

2004-05-23 Thread Sara Golemon
> 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 >

Re: [PHP-DEV] Analysis and Patch for Bug#28491

2004-05-23 Thread Andi Gutmans
Hi Sara, 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

[PHP-DEV] Analysis and Patch for Bug#28491

2004-05-22 Thread Sara Golemon
Currently, re-assignment of $this is handled in compile time but that won't stop anyone from creating a referenc of $this and changing its value. Of course, any indirect changes to $this won't permanently change the object in the way that changing $this in PHP4 would have since the value of this i