Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91482 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85501 invoked from network); 3 Mar 2016 13:25:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Mar 2016 13:25:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.42 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.42 mail-wm0-f42.google.com Received: from [74.125.82.42] ([74.125.82.42:35354] helo=mail-wm0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 03/0B-21983-95B38D65 for ; Thu, 03 Mar 2016 08:25:45 -0500 Received: by mail-wm0-f42.google.com with SMTP id l68so131140525wml.0 for ; Thu, 03 Mar 2016 05:25:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=YRcD7ZGC6N3bG/hVFsbj4ihWSJuGXfRHFKgEwDPRxA4=; b=TnjKxX5fJ0of6AUFOTDWkCRVZc0P2//AlYdF2+fIpZ1D0p41SC6nJLeV1MUAEtHC3q Yr88zIuLnmJaHU1Jwhpn+l0QbnDIE+uKS9Dr7DnNXxz1laJPpj6gnxYm5RyeGFh5Iwx+ kYL8u17waGmmJuQyvoPMFfOQ2BU904DvCC1kCGcje5ETmPsgyxN0oEjEi5F41rRUhhAm aSqujVh0wpInOhFloS0/wrGsm3/48/kswil4HDdOdOFMdSyDOc3abYiBv9p4fGpLqgHX SxYZ3gDUhCOTNKSPQTsT+h84wvquWjxYvUOsYub8AVqEpwMkPBgex2UxSAo2bjn1KJWl OU4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=YRcD7ZGC6N3bG/hVFsbj4ihWSJuGXfRHFKgEwDPRxA4=; b=O+MG4VxzhcZQB3reJS7Tpu1VSH7CqNJTEpZXOxNr3Snz4nw3fwQ8choHhohlfTsI3a DPkOTbaKFFC1zsKqfG1UoIMkkbB3NRmSBImrmn6RL911M6eLd70PM7L0zd4fydPMrMw/ VuLT0JeAVMfpgwoJQFaCLzrAzCIwYts8YjEnTcsni5xXBuRlabzRHMaxmGIWQ48uUBvt VLNnb1fUuO96VwN+7yxfV+m5Pd+uAbm0kQ+sxluMeJSJMnru+KRESo5GjBMOwjvIMmte s1mvxQmWsuEZXh3HSHMBc7upogUeyaXIGhDZNPFiZ6RWqKBOx9uDa1cUyrtwVc2AaRV+ t7zg== X-Gm-Message-State: AD7BkJJKLz4hPw3KaM3GYP/3uUMYRNB5KxKLvBi3Cdhvgu7PmATG/MGB9djFC1hynrNUrg== X-Received: by 10.194.22.68 with SMTP id b4mr2968482wjf.158.1457011542132; Thu, 03 Mar 2016 05:25:42 -0800 (PST) Received: from [192.168.0.141] ([93.188.182.58]) by smtp.googlemail.com with ESMTPSA id m63sm9017371wmc.3.2016.03.03.05.25.41 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 03 Mar 2016 05:25:41 -0800 (PST) To: internals@lists.php.net 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> <56D83678.1090006@gmail.com> <56D839B9.4090502@lsces.co.uk> Message-ID: <56D83AFA.3040509@gmail.com> Date: Thu, 3 Mar 2016 13:24:10 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56D839B9.4090502@lsces.co.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal From: rowan.collins@gmail.com (Rowan Collins) Lester Caine wrote on 03/03/2016 13:18: > Actually my problem is even more simple than that - although it may be > possible to further filter the lookup for 'var ' ( note the space ) many > of the results are simply not text that needs changing. The script that Colin linked (https://gist.github.com/colinodell/5fb5e5d474674f294a38) uses an in-language tokenizer, not just text find-and-replace, so this is a solved problem. If this turns out to not be smart enough, one built on top of Nikita's PHP-Parser project would be pretty easy as well: https://github.com/nikic/PHP-Parser/ Regards, -- Rowan Collins [IMSoP]