Re: Assigning to $this
| From: | Zeev Suraski | Date: | Wed, 04 Feb 2004 13:57:10 +0000 |
| Subject: | Re: Assigning to $this | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-7535@lists.php.net to get a copy of this message | ||
Good idea. I added a fatal error. The reason is that there's pretty much no chance that someone was doing this and his script will continue working. This is definitely something which needs to be fixed by the app developer.
Andi
At 15:16 04/02/2004, Jan Lehnardt wrote:
Hi, I was just wondering. An assignment to $this is not longer possible in PHP 5. This was agreed upon and everything is fine with that. However, when trying to assign to $this in PHP 5, this assignment is silently ignored. I thought it might be useful, or even needed to issue a notice there. I first thought this was a candidate for E_STRICT, but now I think it should notice the user at a lower level already. Any opinions? Jan -- -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php