Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105387 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 46696 invoked from network); 24 Apr 2019 19:13:50 -0000 Received: from unknown (HELO mail-lf1-f47.google.com) (209.85.167.47) by pb1.pair.com with SMTP; 24 Apr 2019 19:13:50 -0000 Received: by mail-lf1-f47.google.com with SMTP id h18so15094487lfj.11 for ; Wed, 24 Apr 2019 09:14:30 -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=9krUwctb1dVoZcShsHR3JsudV3BntTMlwxiC48THJZA=; b=doYE35rOYA9TKrjmiXCfUgmBVsp0rInn9oisgY1716CoWj8+yqM/wMHOgUeVOszzfV EWsP0j+feYvaBsc1SZcvuRWu6hmdxNCWXIqnfDKmcDZHE7JxsWtK71QjbdQqDdiSt86O JaCTfgC0hEzpg6J6zKBhb+UGqGGJrq7Do8cYO6rEFd48FYtu7MBAPYYeaPnZDilmKQJl n0kar/hlmLnnMJlTj5eiQNEqt+lUL8OigIqfAo6pE31ry63qm09C1W3HK6IT2tXuJ0+9 MxOcGoJ8V/zlfpFlZSThz69U9xG0Jy4/XUTOUY39m+8Gzrv9w+zb+c0w+SwLnVNO+sJO KGsw== 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=9krUwctb1dVoZcShsHR3JsudV3BntTMlwxiC48THJZA=; b=q8uPF/eyoMyD2ojRAoVH3iYGC+S8ys4Da3Wdp2HmQqXs9HCUI+yRDzgjupyWDIwlaO 327yOWwEyZtl+v2oE2AE0jNKFS2IgmVHkTE1fpriM+evOzRMLors/2HPH/NC2/fi3RCS KegCfi47sNYiBc3Nuew+tKFzrTNWwek1nVwFdweLC3q3PI8RtKlN7DqkMF1MHlEc9xj6 OePrvfKaq3zIJEJ/fOh77d3S90ljUPOZuG0+IAg+q3SEiJiwYvHVQ9stB9SJ1Tq0RqZD o+UrroIW8rmFtOwPM6uuu1Xx8uuN7AqhtSODf4IkPz7utzzDAH3d87mzhaS6OxiNrtun XuFg== X-Gm-Message-State: APjAAAV0/ZxxsQHyNw68n2N4AoqB47CNYFexyWQOKGiiuSD5gxf8IisB 8J6zQz+4AzRgpxNACaXWfIfi1OB3p79fymWm2N0= X-Google-Smtp-Source: APXvYqxey/dXKYJA55oLnYywF011YCD2ygEpxaz2obkNkjaOfqipKG0+zMKGQnQThhOjR/ab3Bwk1zJKdwiEDfyX3Z4= X-Received: by 2002:a19:20c8:: with SMTP id g191mr18913922lfg.122.1556122470283; Wed, 24 Apr 2019 09:14: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> <5cc08999.1c69fb81.9fdc4.30ccSMTPIN_ADDED_MISSING@mx.google.com> In-Reply-To: <5cc08999.1c69fb81.9fdc4.30ccSMTPIN_ADDED_MISSING@mx.google.com> Date: Wed, 24 Apr 2019 12:14:18 -0400 Message-ID: To: Mark Randall Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000117fc5058748ffd1" Subject: Re: [PHP-DEV] [RFC] [VOTE] Deprecate PHP's short open tags From: chasepeeler@gmail.com (Chase Peeler) --000000000000117fc5058748ffd1 Content-Type: text/plain; charset="UTF-8" On Wed, Apr 24, 2019 at 12:06 PM Mark Randall wrote: > On 24/04/2019 15:35, Chase Peeler wrote: > >> Total files scanned: 20,767 > > Total lines scanned: 4,013,170 > > Total short open tag references: 6,787 > > Total files w/ short open tag references: 1,665 > > 1. Open project in PHPStorm (or equivalent). > > 2. Run inspections. > > 3. Click convert short open tags. > > As I've mentioned in other posts, I don't trust this to do a blind find/replace. Some of our legacy code files are REALLY bad. Just doing auto formatting on them in PhpStorm will break things. > Personally I prefer the shorter look of "" when writing > templates, but not enough to be up in arms about its removal. > > I personally don't like using short tags. I haven't used them since there was a rumor they would be removed in PHP 6. My objections have nothing to do with me personally wanting to keep using short tags. > If anything I'm more concerned about potential code + data leaks. > > One of my major concerns as well. I find it ironic that one of the justifications for the RFC was the potential for code leaks if code with short open tags is used in an environment where short open tags are disabled. The solution to that was to guarantee that code with short open tags will leak code. > Something which was previously perfectly legitimate code, no longer > being considered code, could be quite the problematic situation... > especially if that code happened to be protective logic such as "if" > statements. > > Exactly my point. Much of our legacy code is left alone as much as possible. We go in there when absolutely necessary due to functional changes in our applications. This change forces us to go in there for changes that don't relate to application functions and don't provide any meaningful enhancement to the language itself, either. > > User secret: > > > I would have preferred that the parser encountering error for quite some time rather than just magically ceasing to be > relevant. > > I agree. I think showing a blank page would be better than leaking code. > The XML argument holds no weight with me. > > Me either. I definitely don't think it is serious enough to justify the BC break given that it can be easily worked around. > -- > Mark Randall > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Chase Peeler chasepeeler@gmail.com --000000000000117fc5058748ffd1--