Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91479 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79710 invoked from network); 3 Mar 2016 12:47:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Mar 2016 12:47:59 -0000 Authentication-Results: pb1.pair.com header.from=colinodell@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=colinodell@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.174 as permitted sender) X-PHP-List-Original-Sender: colinodell@gmail.com X-Host-Fingerprint: 209.85.214.174 mail-ob0-f174.google.com Received: from [209.85.214.174] ([209.85.214.174:35010] helo=mail-ob0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5B/E9-21983-E7238D65 for ; Thu, 03 Mar 2016 07:47:59 -0500 Received: by mail-ob0-f174.google.com with SMTP id xx9so18706210obc.2 for ; Thu, 03 Mar 2016 04:47:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=7TuSD/zqDA/zE/cVPYbi8jBXJ+70etCceJJpWoHNkJY=; b=fRXwshaCCd0HjF7K3LbiKT6G2Xxd0bFQXYTmWRizKb9ShU0Ey/Ok/YukHue0RHepuN QHhS5sThI2RFl1SbsP7GkwJxBkhi5aGHtmvpxAw6q9jr7FlOtRi3Zt7hLmG1QOSPhgM8 qAOqLl3He0A7xnB9LHzOvWGFbvOjtrYRFmFszdGEsZqxbLkswldPJc8dPmDBhVzUozBa cg0FZvibybDimZT8GB56ouCMTIN0bdXwEQStRg03Wr/W3FXlKnLoonq34nxNzlwQY8Au Vn/GHLeUWTRt8eBVB2P0G+dwxOjDs0JhwsX3+mgpIHsVlP5svhjqsUX3sIGyxdlw3nqT yQ1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=7TuSD/zqDA/zE/cVPYbi8jBXJ+70etCceJJpWoHNkJY=; b=JK6znShiGx/esyEpVyqLVcqSBtJXpet3Q61/pIMadsgjWNUXnJAHxOPjb5bareto3S Wmt29ok2bgC23e8uBOHPmXKFHSC5sekyAMp1XJZeaDsJvWdy0iyfiLxpD/TqQ83k+wHU oi+gUdEpNLQrG2UC58+dNeosm204/XAk+G0cKseorMU4Cg47tWNmGhC+NULFGBrg/LFm oZViR5GPEsM0e/InJJYO53Y2nWnaiUx52GjdosckypYWnDpOfqhjDwHt97vqLKpI4pSk r1y6w8HmCfBJRlLWDVnBbuRCAu1Dv5EuQa6ubx66gTTZeBv40h6yyLWqcx6ttvIlXOEV 7nsg== X-Gm-Message-State: AD7BkJIH6EejVtN9CKDBp2wXx0y+wLS8Ow1MtFNQByqq3DIZxM7tSQ3f7FQ0idVJlwPk9p5Ec6oTN1Ljj7kVDQ== X-Received: by 10.60.82.229 with SMTP id l5mr1553386oey.6.1457009276029; Thu, 03 Mar 2016 04:47:56 -0800 (PST) MIME-Version: 1.0 References: <1F.91.55238.41F10D65@pb1.pair.com> <56D42CD3.6020602@gmail.com> <56D57DF4.8000906@gmail.com> <56D5D2AD.6070805@gmail.com> <56D5DDA6.4080607@fleshgrinder.com> <40.73.36499.548B6D65@pb1.pair.com> <56D6BBD0.5010505@gmail.com> <56D73386.3000903@fleshgrinder.com> <86.68.21983.A2508D65@pb1.pair.com> <56D80C33.2070102@lsces.co.uk> In-Reply-To: <56D80C33.2070102@lsces.co.uk> Date: Thu, 03 Mar 2016 12:47:46 +0000 Message-ID: To: Lester Caine , internals@lists.php.net Content-Type: multipart/alternative; boundary=047d7b6725dc55129d052d24682c Subject: Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal From: colinodell@gmail.com ("Colin O'Dell") --047d7b6725dc55129d052d24682c Content-Type: text/plain; charset=UTF-8 Lester, > The problem with 'var' is that while one should probably > replace them all with public, there is a lot of simple legacy code still > in active use that could take years to 'tidy' 'var' would not be removed until 8.x, so you'd have several years before needing to make code changes. Additionally, the RFC will include this script which automatically upgrades legacy code in mere seconds: https://gist.github.com/colinodell/5fb5e5d474674f294a38 If you're staying on PHP 5.x or 7.0, no changes would be needed. If you're upgrading to 7.1+, you would need to either hide deprecation notices or take 30 seconds to run that script. > Only a small percentage are 'actually' replaceable by public My understanding is that 'var' is simply an alias for 'public' so they should behave identically. Could you please provide an example where 'var' is not replaceable by 'public'? Thanks for your feedback! Colin O'Dell --047d7b6725dc55129d052d24682c--