Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105409 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 22718 invoked from network); 24 Apr 2019 22:30:03 -0000 Received: from unknown (HELO mail-lf1-f41.google.com) (209.85.167.41) by pb1.pair.com with SMTP; 24 Apr 2019 22:30:03 -0000 Received: by mail-lf1-f41.google.com with SMTP id u17so15599900lfi.3 for ; Wed, 24 Apr 2019 12:30:45 -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=YX0W/qGUQQrBOk5VhXLmnwka4V8BqvJAABJ3DhoeVHs=; b=irYYhR5/lu1MDjNRj5ZMjpfP7i61ZVa4OiKtA5yz+RC4ZEa5AyirHZvPGq+3uNPdRW 0R6KynMGY0mu1YNjgYyiYo/2HGL6slZqh10Ejz9ulhy/hdnw3eZm4Y3px42UMJfNxT7q I5u6VcQsAgmrRgSjNJv5/E6xsHlFcy1zZ2PnvInsoB2ctmKaEPWgs6Fi/b6L+K6Lsko0 F5i1dZW5VljwWT24UW3Hm5bR0sPS17/nYWsROFFJxxGmCTO2b4K1UXXdgpkEJmFH29K8 Z+6FGVlv06cQRXdHToxJ+4JXJR0ZhHRoj0MeBRP+C4EgyMQG2HBdV/UXjAOqmdSCl8iQ V8ag== 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=YX0W/qGUQQrBOk5VhXLmnwka4V8BqvJAABJ3DhoeVHs=; b=DQHRjA5Dcu60ul87AWhxvyImPIr9t4J4jCSS4GGcJX1qXYbmBFqM+RxigkPZsYvkt9 BrIj0K1HEX7+IpOsMewSThisLzua8wi1c5SjtEOBhkIvOPA2vxVi7/q3OyZoKqJ7pCgJ V7Cvvuelq/c0jogasYsQCd0Rkm/vgNzffF9d61ELEzQ9AGFpIaXMaVMvrb/ISBRcJG/x SNhDRDA1MlRJjuWUSzjeB8I+V2d/+HZSs8qgzlNNz+D76BQr27WSebj6EC0ocx/0mHCG BUWsib6wl10UleYw72ObhDUKv+g5xKURj9eDFZsFYjfOytUyCcYFXnzgKNaflLX44BmL J1SQ== X-Gm-Message-State: APjAAAUo1rVT1iCuAU25j03/nO5Oz8ap76YV5t/Mk0s30KzLgRP3VHXf XpbpWmEcuqD0n4vBbZnUSEDrnjWa/JaozUfg0mM= X-Google-Smtp-Source: APXvYqxXR/1+wyImRRSsohtFfJ1MZlajGGyJWZg8VUcvRB8dSjUa86ucHe2RYZeFFdZAhgf2vX8l0a8hDcpokGPSPU8= X-Received: by 2002:ac2:4647:: with SMTP id s7mr18101153lfo.168.1556134244729; Wed, 24 Apr 2019 12:30:44 -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 15:30:32 -0400 Message-ID: To: Peter Kokot Cc: Marco Pivetta , Christian Schneider , PHP Internals List Content-Type: multipart/alternative; boundary="000000000000e148f405874bbc6c" Subject: Re: [PHP-DEV] [RFC] [VOTE] Deprecate PHP's short open tags From: chasepeeler@gmail.com (Chase Peeler) --000000000000e148f405874bbc6c Content-Type: text/plain; charset="UTF-8" On Wed, Apr 24, 2019 at 3:07 PM Peter Kokot wrote: > 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, < > cschneid@cschneid.com > > > > > > > > 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 the memory_limit needs to be increased a bit and only relevant change > is done in all files. 8k (or 6k) opening tags is nothing very big > actually. > > Honestly, the amount of people that have never seen or worked with my codebase telling me how easy and low risk it will be to make the change are starting to annoy me. Can even one of you actually address any of the points I've made about why the potential negatives of this change far outweigh any potential positives? Heck, can you even present any potential positives? > Then also search for similar occurrences by using a regex for those > edge cases you're mentioning in strings and such (I doubt there are > but ok) and you have this fixed. Then run this app on PHP 8 and you'll > see the other BC breaks that happen due to the major release. Major > releases are meant to break things because otherwise we can only load > the language with new things and maintain old stuff in there for > eternity. > > As I've said before - I have no issue with BC breaks. What I have an issue with is a BC break that has a large potential for negative consequences that aren't anywhere close to being outweighed by the positive ones. None of the reasons presented in the RFC justify the downsides. Not a single person has addressed any of the potential negatives being brought up, either. They just respond that it's easy to update your code and pretend like there isn't a potential for negative consequences. > That's why serious apps have support cycles and follow their > frameworks release and life cycle, and in the end also PHP cycle. > Simple as that. > > I work on an internal application for a non-software company. We are beholden to the cycles of our business. We try and work in upgrades when it's possible and we have a lull between major projects or when we can justify delaying a project in order to perform an upgrade. > -- > Peter Kokot > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > Unless someone decides to actually discuss the issues I've raised in previous emails, instead of just telling me how easy it's going to be for me to update my codebase that they know nothing about, this will be the last message I'm sending in this thread. -- Chase Peeler chasepeeler@gmail.com --000000000000e148f405874bbc6c--