Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93475 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59405 invoked from network); 24 May 2016 07:55:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 May 2016 07:55:21 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.195 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.220.195 mail-qk0-f195.google.com Received: from [209.85.220.195] ([209.85.220.195:33479] helo=mail-qk0-f195.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E8/F3-37212-7E804475 for ; Tue, 24 May 2016 03:55:20 -0400 Received: by mail-qk0-f195.google.com with SMTP id q184so1098661qkf.0 for ; Tue, 24 May 2016 00:55:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=rCf6KCjhAf7RLxlu8AXgnoTT5bbpszUhXMZh592l+Vo=; b=XcVEtTnQTt9octe6P5pdsi4VgI/54vM2hdUV7RiZivVzdSpV0lPVlSNnUUDmXUZRKS /G+XOK+b8U2GhpHn00IyOku9Mc13wHDh6fOYPanh+/8G4cotStc023iSbjst5gQ6mvcD 7UWiVZRU4on+gxnwMziHG2tEvr1m9f7wcztj9B1Ic10tsN2LI6uFCEHUb5R7bd0Wto7g zZuy4235pI5gWNZVitxPn6LMC7ePIfO3VHqRIaG9iCnCFiU9GXH2gGNv2jk15J2Ub5fm cXmcukMW/Ar87oOTVnjxnxcCWk/ZgNdPWbRnKbX8kAw5YpAsM+BP3bHTfiE4J19mnOeh fFRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=rCf6KCjhAf7RLxlu8AXgnoTT5bbpszUhXMZh592l+Vo=; b=DM2pohGgnx2DTcPlzS8JeBbxIc7bxh15WjzpxRdaBLj94igtFhHXI1MGBRf7ErWb9v dinLM61+HuY4gjKxCdkgF7hIT7KP06yZUen/JDHMtmeW8JbUxfRmUaNRcY85WFc4R2aI bARuNe4hAh3tZW4PlZmr+kXMGq7MbJdcGr/JCsQfvt152fAT6Sd1xnoCLds9AxWNGWxz tIlIgtHCxSuEq7eU8zzd3XA0cqra1HuqkQdiHJd9Wp7gBqdh2Spa2HfgMtqgeCYLqJBM ALwmEdhwpI7D2cy8m+9kYFvxCYHvaU/n+TA285nAGp0PoXpU3N83JwDjfqjUFEZHVA1D GwbQ== X-Gm-Message-State: ALyK8tKPBm4VmLXuOsrJllXgoT0faoyGYDJrSXS2Y+EOmcefy4LG+5Zu3tDmeDzGVA62LPDw3B1/JAwYV/J0ZA== X-Received: by 10.55.112.69 with SMTP id l66mr2183875qkc.20.1464076516893; Tue, 24 May 2016 00:55:16 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.140.27.133 with HTTP; Tue, 24 May 2016 00:54:37 -0700 (PDT) In-Reply-To: References: Date: Tue, 24 May 2016 16:54:37 +0900 X-Google-Sender-Auth: VR7mqv3a5uohNjR_rHjg-z98Ow0 Message-ID: To: Jesse Schalken Cc: Dmitry Stogov , internals , Nikita Popov , Bob Weinand , Xinchen Hui Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Fix inconsistent behavior of $this variable From: yohgaki@ohgaki.net (Yasuo Ohgaki) Jesse, On Tue, May 24, 2016 at 4:25 PM, Jesse Schalken wrote: > On Tue, May 24, 2016 at 5:18 PM, Dmitry Stogov wrote: > >> In fact $this is not a regular local variable and it must not be >> re-assigned. >> >> > You're just restating the premise for my question. Why is it not a regular > local variable? Why must it not be reassigned? $this must be a object you're accessing. If you can change $this, you'll suddenly loose object. PHP 4 treated $this as regular variable and caused lots of problems. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net