Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104928 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 19986 invoked from network); 25 Mar 2019 17:12:46 -0000 Received: from unknown (HELO mail-lf1-f51.google.com) (209.85.167.51) by pb1.pair.com with SMTP; 25 Mar 2019 17:12:46 -0000 Received: by mail-lf1-f51.google.com with SMTP id 5so6076418lft.12 for ; Mon, 25 Mar 2019 07:05:55 -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=+0/LBa10y/jcoSA+u5Y4oZ5Awpvf+TTk1xzULuMEtWk=; b=fg4tzV3g/fyl7Gi3OVDwWiqOcl/SRts3kUpTza1LSUSH9D1dXoAldYH1Q5znAyJ58l Gwf+WdUFv2qje9xSWg0/Zv8130eyLcqaoZhzB0PNF2a7WK3CoAo47BVGWu5oTo6cwNxG fbSmFaYkokFS+dTVBf7iQ1Ndr/wc4GaOlirc9GC7n41zO+WgDoveqQunRtAxDiYdRVd+ 63UO9pV/GSvRZladvowH3MMJv4lkqaLvtUzoRIpDIRC23BV7db1ygVCkk5eD+KXoTuIR sZ93zScPkIsO7xXNM4VZAZzHE9JRpi2E+J4AZ1aHC338pXrDLDP1SmG0pWUISJlRfo4o dzxw== 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=+0/LBa10y/jcoSA+u5Y4oZ5Awpvf+TTk1xzULuMEtWk=; b=sMpk81B4hCc6iRR2mneSuPLukKdCXH+WKKVOmmaLX+rctdjH6yCwGu5u09z4CQbFA8 JZKtOYLerZdzXTglVkLYMizipzMfkd6yIJTH5O8M6PzWbp+3biCiYRUkdWsTJuWUq8l7 lJW1puxryt1ky50OmR6HgmFEaqxHV3fb0I75aIT0ypMJhvMvwzj/liPWmawdG6PiAUu2 roaC4hz1ScrTBE2wpBgqzSNki6H2rZC1pJCXrSdNbNcwYrU3cmHJwX8ke+7ro7u4l70a nZqhxllWMjRVbUjkwh55kd5wj6RKwNGCXioH7NhLXXfl7ERhvUW/B+7NOyZo0ndKwZHY QM0Q== X-Gm-Message-State: APjAAAVhdYH2VEzK3OPXCcmfbiffS9x1CU/Cu/F90eYZT5BleQcYbzYU 4HOn8bxqeqjyE90xsTAVxIXkRJ+RFVBwd1G9AV0= X-Google-Smtp-Source: APXvYqxFuI7N+WimvFrrvqbgFTP+fWACZiof53zNEgam9E/ljxGcVuCFCs6U/iQp3bi/u4nQFX0+JYkwyjvfLKQqzP0= X-Received: by 2002:a19:6d06:: with SMTP id i6mr12415442lfc.98.1553522754375; Mon, 25 Mar 2019 07:05:54 -0700 (PDT) MIME-Version: 1.0 References: <000301d4e312$06a88190$13f984b0$@roze.lv> In-Reply-To: <000301d4e312$06a88190$13f984b0$@roze.lv> Date: Mon, 25 Mar 2019 10:05:42 -0400 Message-ID: To: Reinis Rozitis Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000ecd3730584ebb337" Subject: Re: [PHP-DEV] [RFC] Deprecate PHP's short open tags From: chasepeeler@gmail.com (Chase Peeler) --000000000000ecd3730584ebb337 Content-Type: text/plain; charset="UTF-8" On Mon, Mar 25, 2019 at 9:52 AM Reinis Rozitis wrote: > > I would like to start the discussion about the deprecation of PHP's > short open > > tags: > > https://wiki.php.net/rfc/deprecate_php_short_tags > > Hi, > I did read the initial thread about this and now the RFC and it doesn't > really state what is the reason of removing the short tags besides this one > line: > "PHP has provided over the years different ways to indicate the beginning > of PHP code other than the standard " > > Is there a (noticeable) speed improvement or does it make the > parser/engine more simple? Is it wrong to provide different ways to > indicate the start of php code? > Since the short ' > I'm still unclear on the advantages as well > Also considering there is somewhat low adoption of new php versions [1] a > change which brakes a lot of legacy code might even further push back the > switch to modern/current versions (at least now even if the defaults > disable the short tags, there is an option to reenable the functionality). > Obviously you could say that those using old versions won't be affected > anyways and those using php 7.x and waiting for 8.x will use recent > application code and also won't notice this deprecation, but in my opinion > (and praxes) it isn't always the case. > > Our application (an internal webapp) has a large amount of legacy code that we try to avoid messing with because we are actively rebuilding everything. Everytime there is a BC break we have to go back into that legacy code. So, while any active development of our application uses "recent application code" that is that difficult to maintain, we still have a lot of spaghetti code that we rarely have to deal with except when it comes time to upgrade PHP. This often leads to the upgrades getting pushed out further and further. I'm not against BC breaks. They are a necessary evil to make PHP a better language. However, I think there should be a clear reason why the advantages outweigh the disadvantages. I'm not seeing that in this case. > [1] https://w3techs.com/technologies/details/pl-php/all/all > > rr > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Chase Peeler chasepeeler@gmail.com --000000000000ecd3730584ebb337--