Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105408 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 15917 invoked from network); 24 Apr 2019 22:06:48 -0000 Received: from unknown (HELO mail-ot1-f45.google.com) (209.85.210.45) by pb1.pair.com with SMTP; 24 Apr 2019 22:06:48 -0000 Received: by mail-ot1-f45.google.com with SMTP id c16so17173068otn.4 for ; Wed, 24 Apr 2019 12:07:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=M+Sr7DPLxcLtQvOW4vPRW1s3usMxrUgq28EM6awuPLk=; b=dwascfHTfeQK8WyaBcKwlWuorWfT9a4wI2b5TzAInGCW+W8msCrRqBW3IWW9RjPpia hO7ofeKQ15Eot/JTWHQUo0xhtjYMF+ObxUSXU4rBULvEM71aVu9z+6d9SGWhxO2zjKx7 JaAYcrpkEmtLuN2rVCUfzO3U3Dy9kjRD55rSmUsTKpf7HMG6zMN0MZ+bhB9vReDmZDvC yJg9JSZPxvu0y4ZXkLGRr34FJD/gKANo7o0EuNOFUEilB9IpzCK/IFdOXIVCBaYoNxF3 ykkveUgR1ExVWfSSdewcFr0laT2G5/OB/DAxHSOMYHWMsZwCyVZFPu4toKD530Y9Ufq0 KyNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=M+Sr7DPLxcLtQvOW4vPRW1s3usMxrUgq28EM6awuPLk=; b=eKn96n428+hbR58Oj1gbiSm26asxg93S0+P4qMcdTD+6blQ8umlXquJYnTkv+cjSyP 4uYYeBOG3eIXQUSHqO0DYm18ROdqJiuXm5OCluGbg3W1gozJv3dBI5VqsE9Fze0pxv1A m62HBqYxxpEoiq+tWwWnPPBK34fbx/qGDbB3dOJTBGbRma+W53xkM7eAKQRVFnoFLvJb sx3pFQ+d7VGxK0sTiWSQux4JWKEQSkQkZF+e0V5RBcbb3A6Tr2o4sei8cWeu/4C5MiLP PWqf7t4bDq8TfxHGBBFKtcE0e5f0eXJK/DBqMc+LrCLyxQkLIfu0cmSXa2BbT7ZrQpFF sRtQ== X-Gm-Message-State: APjAAAUdufJWt69iLQvB7aUINMh9nsVpkdSK1ZwhUxqKw4EueOeLhYMh WbqgwOTnqycME3mzlQ10Ycu8k4+qm1osR9u9gCo= X-Google-Smtp-Source: APXvYqyapMuH39IEyXtVW1ahYiXtTnmnranrBpnsfOUCXO0hc0HFS1vSyYgcBEK5ByrHdv764BtcVLhcI4NQCG/eZlA= X-Received: by 2002:a9d:6015:: with SMTP id h21mr20114076otj.42.1556132850525; Wed, 24 Apr 2019 12:07:30 -0700 (PDT) MIME-Version: 1.0 References: <0ec42fa9-77d1-a203-8425-e72fdd5071f3@korulczyk.pl> <06473788-a34b-f041-36e6-31d19d8dda4c@cubiclesoft.com> <59cafbfb-2bb0-468c-458f-74bcac780e0f@korulczyk.pl> <004c01d4f09f$880ac320$98204960$@roze.lv> <004401d4faa3$60f83700$22e8a500$@gmail.com> <2f922f17-bc7c-313a-8f77-122e861995be@lsces.co.uk> <5741936F-B1F4-43C7-B815-F9D8030AC7BB@koalephant.com> <49A4B76C-4C62-4CBE-BA20-FBE56CA29AB0@cschneid.com> <609E93CF-099B-446C-AD28-04F1D802C9F0@cschneid.com> In-Reply-To: Date: Wed, 24 Apr 2019 21:07:19 +0200 Message-ID: To: Chase Peeler Cc: Marco Pivetta , Christian Schneider , PHP Internals List Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] [VOTE] Deprecate PHP's short open tags From: peterkokot@gmail.com (Peter Kokot) Hello, On Wed, 24 Apr 2019 at 19:44, Chase Peeler wrote: > > On Wed, Apr 24, 2019 at 1:27 PM Marco Pivetta wrote: > > > On Wed, 24 Apr 2019, 19:25 Christian Schneider, > > wrote: > > > > > Am 24.04.2019 um 19:13 schrieb Marco Pivetta : > > > > On Wed, 24 Apr 2019, 19:10 Christian Schneider, > > > > > wrote: > > > > Am 24.04.2019 um 19:01 schrieb Peter Kokot : > > > > > just a friendly reminder that by the time one writes an email here > > > > > these tags can be already replaced with the usual ones. > > > > > > > > A friendly reminder that some people are hosting customer code which > > > they do not want to touch but will get support requests once the code > > > breaks. > > > > > > > > - Chris > > > > > > > > That's normal? Everyone has projects to maintain, and breaking changes > > > are common: they're gonna call you for one anyway: if you don't like > > that, > > > then you are in the wrong line of business. > > > > > > See Chase Peeler's point: A breaking change should have a reward big > > > enough to justify it. > > > And that's what where we (including Zeev Suraski and other core > > > developers) disagree. > > > > > > - Chris > > > > > > > Run a fixer: they are out there, and they are extremely stable too. > > > > Also a good chance to finally take a look at code that has been rotting in > > a hard drive for too much time. > > > All of that takes time though. I have 6,787 short opening tags found. Even > if I use a fixer to generate a diff, or, to fix them and then examine the > diff in a pull request... that's going to take a LOT of time. It's going to > start getting messy if I find false positives and need to exclude changes. > It still doesn't address the impact of changes that aren't found. Are you > 100% positive that the fixers out there will catch EVERY single instance? > php-cs-fixer doesn't update dynamic code, then that's not getting caught. > > The output from php-cs-fixer just generated a diff file that was 161,000 > lines long. But yea, that's something I can scan through real quick and > make sure nothing is going to get broken. No chance I'll miss something > either. > > I would LOVE to have the time to go through our legacy code and clean out > old stuff. We have a lot of technical debt that, while we aren't paying it > off at the moment, it's gaining any interest either. We also have plenty > that is. It's tough to justify putting off the stuff that is gaining > interest to focus on stuff that isn't so we can fix short tags. > > I don't work for a software company. I develop an internal application for > a non-software company. There are 2 other developers and enough work for 10 > developers. It's going to be VERY hard for me to get management to approve > putting off projects that have a direct impact on our business in order to > upgrade to PHP 8 when that time comes. I think you are going to find that's > a pretty common occurrence, and the adoption rate of PHP 8 is going to be > VERY low. Especially when more and more user-friendly alternatives like > python and node are coming along. It was one thing when the options were > RoR, ASP.NET, and JSP. That's not the ecosystem anymore, and it's only > going to provide additional user friendly opportunities in the next couple > of years leading up to PHP8. > > Can someone PLEASE tell me the positive gains this RFC will accomplish that > justifies risking: > 1.) Losing market share > 2.) losing credibility > 3.) removing a large number of libraries that are fine from a technical > aspect, but will stop working due to the existence of 4.) new security risks (code leaks that are more likely than the code leaks > the RFC seeks to prevent) > > And, please don't use the existence of code fixers to justify this unless > you are willing to demonstrate how it's quick and easy to go through a > 161,000 line diff file or are willing to 100% guarantee that the fixer will > not break anything, will not fix anything it shouldn't, and will not miss > anything it should fix. > > > > > > -- > Chase Peeler > chasepeeler@gmail.com I've done few commits with about 8k files changed with very repeating changes like this and without breaking anything. It will take you about 30minutes... Let's say, one hour for also taking a break from all the scrolling the git diff and to return the merge the next day after another check or something like this. The change (speaking for 8k files using short opening tags converted to