Re: [RFC] Fix inconsistent behavior of $this variable
| From: | Dmitry Stogov | Date: | Tue, 24 May 2016 07:18:28 +0000 |
| Subject: | Re: [RFC] Fix inconsistent behavior of $this variable | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-93471@lists.php.net to get a copy of this message | ||
On 05/24/2016 08:45 AM, Jesse Schalken wrote:
I'm curious, what is it about $this that makes it special in the first place? Can't it be a normal local variable that happens to already be assigned at the start of a method?In fact $this is not a regular local variable and it must not be re-assigned. Thank. Dmitry.
On Tue, May 24, 2016 at 6:24 AM, Dmitry Stogov <dmitry@zend.com <mailto:dmitry@zend.com>> wrote:Hi internals,Please review the RFC.It proposes to fix all known inconsistencies related to handling of special $this variable.https://wiki.php.net/rfc/this_varThanks. Dmitry.