Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93656 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76423 invoked from network); 31 May 2016 16:55:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 May 2016 16:55:58 -0000 Authentication-Results: pb1.pair.com header.from=php@fleshgrinder.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=php@fleshgrinder.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fleshgrinder.com from 77.244.243.82 cause and error) X-PHP-List-Original-Sender: php@fleshgrinder.com X-Host-Fingerprint: 77.244.243.82 mx101.easyname.com Received: from [77.244.243.82] ([77.244.243.82:49121] helo=mx205.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A8/DA-26200-D12CD475 for ; Tue, 31 May 2016 12:55:58 -0400 Received: from cable-81-173-133-15.netcologne.de ([81.173.133.15] helo=[192.168.178.20]) by mx.easyname.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1b7mxO-0007MU-5p; Tue, 31 May 2016 16:55:54 +0000 Reply-To: internals@lists.php.net References: <1932f04f-c015-3956-a89c-8e96d2902e67@fleshgrinder.com> To: Dmitry Stogov , internals , Nikita Popov Message-ID: <9304d21c-3cf5-18b8-00c3-264f57f10489@fleshgrinder.com> Date: Tue, 31 May 2016 18:55:42 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="E35oFuDWTeNE8wmd9Da9umUH9wlO6O1vE" X-ACL-Warn: X-DNSBL-BARRACUDACENTRAL Subject: Re: [PHP-DEV] [RFC] Fix inconsistent behavior of $this variable From: php@fleshgrinder.com (Fleshgrinder) --E35oFuDWTeNE8wmd9Da9umUH9wlO6O1vE Content-Type: multipart/mixed; boundary="vPXGixlxoPr1Gs3LOn6eHg6TFlaamViuK" From: Fleshgrinder Reply-To: internals@lists.php.net To: Dmitry Stogov , internals , Nikita Popov Message-ID: <9304d21c-3cf5-18b8-00c3-264f57f10489@fleshgrinder.com> Subject: Re: [PHP-DEV] [RFC] Fix inconsistent behavior of $this variable References: <1932f04f-c015-3956-a89c-8e96d2902e67@fleshgrinder.com> In-Reply-To: --vPXGixlxoPr1Gs3LOn6eHg6TFlaamViuK Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 5/31/2016 6:39 PM, Dmitry Stogov wrote: > Hi Richard, >=20 > $this is still confirm to variable syntax. It's just a special variable= =2E > I think, we should keep lexical rules unchanged. >=20 The page is about user assignable variable names. If I understand it correct we cannot to the following anymore in userland: $this =3D 'my value'; Hence `$this` is correct to lexical rules but not in the context of variables that I can use to assign something too. Hence the change of the manual page. I did not say anything about lexical changes. Note well that the above is already not possible in many situations: php -r '$this =3D "my value";' Fatal error: Cannot re-assign $this in Command line code on line 1 TL;DR $this does conform to syntax but not to basic PHP userland rules for variable naming (what the manual page is about). --=20 Richard "Fleshgrinder" Fussenegger --vPXGixlxoPr1Gs3LOn6eHg6TFlaamViuK-- --E35oFuDWTeNE8wmd9Da9umUH9wlO6O1vE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXTcISAAoJEOKkKcqFPVVr8aQP/1Ke8HHnviNOTvVpT3L97YKj Z1geJI/YAiOwEkVSc9NB45oirZyg5nWFl9zk7q036wFUQD+c3dZ5doWTjMqCV89n iH1KmwmwyyALXZ3OLUTSJeL30/aecelDWgWNCbcVx3wt3C8fwfR1f8WogawuW1OK kNL8gJJySCo7JZfZBWOPz1mOCSYBWmJ4K/oDN2c9eSDXgzCElwa0RnuTbxI1fsnx bIkxvZJlsSwpQNaYHo/zPaty28isvmg4Z1vtILANpUiUA/Lzd5GdGxgD8XpOdd1Z drnPAkrwYxGjsXnvmWG3TJsYm1HzWsVMbGanknoeCSIn5H9oO+o20tWVALnc97b5 HWM4KYNWG41Vu+w9OAp6/ynsiDtnxT/S5WSwVOdsX8nR6zvY60PcfwcRAG284prf KISff5ODlvvkHrMTqByZgF6z2Fz73zbMDp1T7/NfM5V/qm6cYoASO60nvMUL16rF d2cqgdof6A6jX8TUDXK2KkkiqnHfJdW46SyXxiLWXdOXPLKkRXLRFKat5Q7i5MJY yHSx2NWmJB0j3UrjqlJl6SnWDcSFzn/0YkuY3cLNyDO8Hxs6Xw8S+z6TbnLiXeH9 8HbqVqHJbdlgGTKWUDp5yVPk6QpkhtbUABAYgWccQTwJKsoWLHP8anOz40SmjuM8 l5IJUMLzqO0UBUMh/OG4 =6N/4 -----END PGP SIGNATURE----- --E35oFuDWTeNE8wmd9Da9umUH9wlO6O1vE--