Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93459 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13391 invoked from network); 23 May 2016 21:28:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 May 2016 21:28:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 207.46.100.122 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 207.46.100.122 mail-by2on0122.outbound.protection.outlook.com Received: from [207.46.100.122] ([207.46.100.122:6199] helo=na01-by2-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C6/AD-14293-EE573475 for ; Mon, 23 May 2016 17:28:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=RWSoftware.onmicrosoft.com; s=selector1-zend-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=N7dL4qyZdL/tEEk/ClzvglFju4PaBABftrOjDA2bDo4=; b=dlPYmF/dPsO/zRv9eaX+DBmF+2hZn1JWOgj3jCdTeJ7epdld2lL6Ca0plPcreTvTh2XGqXY2tkDEjTFXtPuNoFzL2/FKvJ2XykvuFFuw+gu3Wz2PRHYEqog+4woQNVgSb1ZPLaLm0QJHwt/CE0UViIED85/m0H89ArWZ7DPPdks= Received: from BY2PR0201MB1784.namprd02.prod.outlook.com (10.163.72.26) by BY2PR0201MB1781.namprd02.prod.outlook.com (10.163.72.23) with Microsoft SMTP Server (TLS) id 15.1.501.7; Mon, 23 May 2016 21:28:10 +0000 Received: from BY2PR0201MB1784.namprd02.prod.outlook.com ([10.163.72.26]) by BY2PR0201MB1784.namprd02.prod.outlook.com ([10.163.72.26]) with mapi id 15.01.0501.012; Mon, 23 May 2016 21:28:10 +0000 To: Nikita Popov CC: internals , Nikita Popov , "Bob Weinand" , Xinchen Hui Thread-Topic: [PHP-DEV] [RFC] Fix inconsistent behavior of $this variable Thread-Index: AQHRtTC0CwOThBGXuUmMwxcXw+u9D5/G/gKAgAALY9s= Date: Mon, 23 May 2016 21:28:10 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=zend.com; x-originating-ip: [132.245.81.165] x-ms-office365-filtering-correlation-id: 2911ef9d-0e76-4db0-8569-08d383512400 x-microsoft-exchange-diagnostics: 1;BY2PR0201MB1781;5:lgxl8IxwVotHeDq0edYU2VCDBkHHHYRWV/94I3wFHSaKJiApHFA1BPqc290sVnA//R7fwYXfNWzGdKyUeJN4utcovShsZ0B66FW5AOnbjPA7g/nwm9GueW/ErF8T73UfLghwTYkKn7Ud0Uk/yeyY+A==;24:3hOMmJotV7UmoPiSo0zZ+jBWSznmSktP1EvM8pCsLDzpN1fbi5F6SwDzwzxA/6SPHKxKlMelY5+W23eXvsCoVEwpm0x4JHnuhvfy3MaUeC8=;7:s9iynuwDa8bzhI2uajl0lPPkhsjWEZgeospeT1aJyePD1m5lq4dTq6QYlSlmK3l8jnYgoN6A84WfKVNcUQ0D3jqd8FUzIKlC+DKPB/1WLxjZ+xKWPLmsQLrSk3zXPEEmIUatiMqkrqR93ecaMxa2y/M6LiWiekFA3qjOsqbZDw7k188fLuZWeHOfzZN+zcM7 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0201MB1781; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046);SRVR:BY2PR0201MB1781;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0201MB1781; x-forefront-prvs: 0951AB0A30 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(24454002)(377454003)(19627405001)(106116001)(92566002)(9686002)(19625215002)(11100500001)(5002640100001)(54356999)(76176999)(8936002)(81166006)(2906002)(122556002)(586003)(50986999)(8676002)(33656002)(86362001)(99286002)(74316001)(5004730100002)(19617315012)(3280700002)(4326007)(5003600100002)(2900100001)(3660700001)(102836003)(6116002)(66066001)(19580405001)(189998001)(5008740100001)(19580395003)(110136002)(1220700001)(2950100001)(15975445007)(76576001)(77096005)(10400500002)(87936001)(3846002)(16236675004);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR0201MB1781;H:BY2PR0201MB1784.namprd02.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_BY2PR0201MB1784E1AE94674DA190580978BF4E0BY2PR0201MB1784_" MIME-Version: 1.0 X-OriginatorOrg: zend.com X-MS-Exchange-CrossTenant-originalarrivaltime: 23 May 2016 21:28:10.5362 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 32210298-c08b-4829-8097-6b12c025a892 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0201MB1781 Subject: Re: [PHP-DEV] [RFC] Fix inconsistent behavior of $this variable From: dmitry@zend.com (Dmitry Stogov) --_000_BY2PR0201MB1784E1AE94674DA190580978BF4E0BY2PR0201MB1784_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable good point. I'll update RFC and patch to support extract() and get_defined_= vars(). ________________________________ From: Nikita Popov Sent: Monday, May 23, 2016 11:46:35 PM To: Dmitry Stogov Cc: internals; Nikita Popov; Bob Weinand; Xinchen Hui Subject: Re: [PHP-DEV] [RFC] Fix inconsistent behavior of $this variable On Mon, May 23, 2016 at 10:24 PM, Dmitry Stogov > 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_var Thanks. Dmitry. How does this interact with things like extract() or get_defined_vars()? The"static function __call()" case looks like a bug... Shouldn't this just = be a compiler error in the first place? Nikita --_000_BY2PR0201MB1784E1AE94674DA190580978BF4E0BY2PR0201MB1784_--