Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91338 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3540 invoked from network); 20 Feb 2016 09:28:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2016 09:28:27 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 157.56.111.146 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 157.56.111.146 mail-bn1bon0146.outbound.protection.outlook.com Received: from [157.56.111.146] ([157.56.111.146:48928] helo=na01-bn1-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7B/50-31842-8B138C65 for ; Sat, 20 Feb 2016 04:28:26 -0500 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=J8wHDWXhrtxFILrcmPwEBSOf545aayt3mFp0t37otRw=; b=tR9JfATYBF2kTJVOywxBNPrPndac829A1yNcqubArwK3xarJfKtggxY3h141l4gNJcehqhnV2QSSM67cX0634PRN5JJo3rzsotQ03Ybbf5tebSWksLiQUQ4Wgm7oHIrkp2HMX+zIsW/uTCHfD51ZXAihEauDHhTWpDQBxyTn3Kc= Received: from BY2PR0201MB1784.namprd02.prod.outlook.com (10.163.72.26) by BY2PR0201MB1784.namprd02.prod.outlook.com (10.163.72.26) with Microsoft SMTP Server (TLS) id 15.1.409.15; Sat, 20 Feb 2016 09:28:20 +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.0409.017; Sat, 20 Feb 2016 09:28:20 +0000 To: Colin O'Dell , "internals@lists.php.net" Thread-Topic: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal Thread-Index: AQHRaoAhLPKB0BUcbkG5tEaWJjv9Lp80rCfD Date: Sat, 20 Feb 2016 09:28:20 +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: [92.62.57.172] x-microsoft-exchange-diagnostics: 1;BY2PR0201MB1784;5:S13fN8YOwrLxOnKWMnQNN2f3g1FBas5H1MzKrUtndG6Nv2nKOVtNeLZ2wQuUJBHiLFIH59Opd9gVS+HEHFtNvQUyTQglCooO6CjmA0CwMm3HIdkFS+A1cS+Klx6LV10aBwc/i5Mc+ZmItMsrO1OVIA==;24:TOLDWZf2jU7gkAC72lfkNYtgAfv/vD+SatcXCf8FlaSnU2eQsj5u2PTRZ2nhkj29UUylX81RZZsj1sDTYIBPIaYN2AbP/Sprh7TlClXTTO8= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0201MB1784; x-ms-office365-filtering-correlation-id: 398ec35a-b120-4612-e746-08d339d82c4d x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001);SRVR:BY2PR0201MB1784;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0201MB1784; x-forefront-prvs: 0858FF8026 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(53754006)(66066001)(5004730100002)(2906002)(11100500001)(5003600100002)(99286002)(50986999)(76176999)(561944003)(33656002)(10400500002)(40100003)(122556002)(74316001)(54356999)(5008740100001)(3280700002)(5002640100001)(76576001)(586003)(77096005)(87936001)(19580395003)(3660700001)(2900100001)(2950100001)(1220700001)(86362001)(92566002)(1096002)(19580405001)(2501003)(189998001)(3900700001)(107886002)(3846002)(102836003)(5001770100001)(6116002)(5001960100002);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR0201MB1784;H:BY2PR0201MB1784.namprd02.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: zend.com X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Feb 2016 09:28:20.7456 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 32210298-c08b-4829-8097-6b12c025a892 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0201MB1784 Subject: Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal From: dmitry@zend.com (Dmitry Stogov) -1 I would prefer not to break source compatibility without a real reason. Thanks. Dmitry. ________________________________________ From: Colin O'Dell Sent: Thursday, February 18, 2016 22:10 To: internals@lists.php.net Subject: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal Hello everyone, I'd like to propose an RFC to deprecate and eventually remove the "var" keyword. My understanding is that this keyword was kept in PHP 5 for backwards-compatibility with PHP 4. However, it's been 9 years since PHP 4 was discontinued, so I'd like to bring this topic up for review. Usage of "var" doesn't seem to be as widespread recently. I've done a quick search of several major projects and libraries and found that only a couple are using it. I personally haven't seen it used in any PHP 5.3+ project I've worked on in recent memory. Because "var" simply acts as an alias for "public", removing it should not cause any loss of functionality. Yes, it's a BC break, but developers can easily replace it with "public" to maintain the same functionality. PHP 7 deprecated PHP 4 style constructors in favor of the PHP 5 __construct() method. I'd like to propose doing the same for the "var" keyword - deprecate it in PHP 7.1 and remove it in a future version (7.2 or 8.0?) I'd appreciate any thoughts or feedback you may have, especially if you have any objections to me creating an RFC for this proposal. Best regards, Colin O'Dell