Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105248 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 69254 invoked from network); 11 Apr 2019 19:54:05 -0000 Received: from unknown (HELO cache4.mydevil.net) (213.189.55.195) by pb1.pair.com with SMTP; 11 Apr 2019 19:54:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=korulczyk.pl; s=devil; h=Content-Transfer-Encoding:Content-Type:In-Reply-To :MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=/JAMGoYaqlK0sQgIaPqFYRpfs0d66tImhyFEDy7onGk=; b=GYms5t5L3u5EeBnVm11PYb2MCg OcNbh6aSVcMeqlOMWWlhBbzkkomvufj0ms0rYElQniVSJD33vETQ//Z7McOpPxF4s8XsQ3asqciDh Fip8lN6+uV+01K1Erd+lLUQE4SImtuQvoAepeqbSNYwVX0ZBsxDZ0fDuuse8IkS7Zc0o=; To: Thomas Hruska , Wes , "G. P. B." Cc: PHP internals References: <0ec42fa9-77d1-a203-8425-e72fdd5071f3@korulczyk.pl> <06473788-a34b-f041-36e6-31d19d8dda4c@cubiclesoft.com> Message-ID: <59cafbfb-2bb0-468c-458f-74bcac780e0f@korulczyk.pl> Date: Thu, 11 Apr 2019 18:51:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <06473788-a34b-f041-36e6-31d19d8dda4c@cubiclesoft.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-AV-Check: Passed X-System-Sender: robert@korulczyk.pl Subject: Re: [PHP-DEV] [RFC] [VOTE] Deprecate PHP's short open tags From: robert@korulczyk.pl (Robert Korulczyk) > Turning it on permanently would also solve the problem Well, yes, although it creates "another way of doing the same thing". So far PHP was on a way to remove redundant tags. Permanently enabling of short open tags looks like a move in the opposite direction. Personally, I'm surprised by the controversy around this change. So far it was an obvious anti-pattern for me, and never seen anybody who was aware of the consequences of using On 4/11/2019 1:12 AM, Robert Korulczyk wrote: >>> Sorry for the sarcasm, please don't consider this as a personal attack. The >>> whole community (not just you) considers short open tags poison because not >>> XML-compatible... >> >> This is rather removing another trap from the language. As long as short open tags exist and depend on INI directive, there will be bugs and source >> code leaks after moving application to a different environment. Using > external tool to enforce this. > > I wouldn't say it is the ONLY safe way.  Turning it on permanently would also solve the problem and there's also allowing ' as a permanent always-on option.  (Native XML compatibility is a complaint, not a requirement of a language.  XML is also basically dead in my corner > of the PHP universe, only ever cropping up on very rare and very confused occasions.) > > It's going to be interesting to see how many people who rely on and *prefer* using short open tags in internal systems come out of the woodwork when > PHP 7.4 and 8 drops.  Maybe I'm the only one who likes saving a few characters here and there and thinks code is more readable without the verbose tag. > > The vote is on the knife's edge of passing/failing at the moment and could go a couple of unusual directions as already noted elsewhere. This is > probably the most interesting RFC *vote* to happen in a long while. >