Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43687 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84712 invoked from network); 13 Apr 2009 22:37:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Apr 2009 22:37:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=philip@roshambo.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=philip@roshambo.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain roshambo.org from 70.38.37.248 cause and error) X-PHP-List-Original-Sender: philip@roshambo.org X-Host-Fingerprint: 70.38.37.248 ip-70-38-37-248.static.privatedns.com Received: from [70.38.37.248] ([70.38.37.248:48729] helo=october.pilotpig.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1B/7F-22673-49EB3E94 for ; Mon, 13 Apr 2009 18:37:09 -0400 Received: from c-76-22-32-17.hsd1.wa.comcast.net ([76.22.32.17] helo=[192.168.1.2]) by october.pilotpig.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1LtUls-0003au-49; Mon, 13 Apr 2009 18:36:56 -0400 Cc: Kalle Sommer Nielsen , Jeremy , internals@lists.php.net Message-ID: To: Stanislav Malyshev In-Reply-To: <49E39B3C.2020401@zend.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Mon, 13 Apr 2009 15:37:48 -0700 References: <49E352FD.6070008@gmail.com> <2dedb8a0904131124u57f2f32ei27083a289f7f18a4@mail.gmail.com> <49E39B3C.2020401@zend.com> X-Mailer: Apple Mail (2.930.3) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - october.pilotpig.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roshambo.org X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [PHP-DEV] Re: Is it true that short_open_tag is deprecated in PHP 6? From: philip@roshambo.org (Philip Olson) Today this topic may be the cloudiest and most heated in all of PHP. Here's the factual history of our poor little short_open_tag directive: ------------------------------------------------ php.ini values : short_open_tag ------------------------------------------------ PHP 4, 5_0 * Default behaviour : on * php.ini-dist : on * php.ini-recommended : on PHP 5_1, 5_2: * Default behaviour : on * php.ini-dist : on * php.ini-recommended : off PHP 5_3: * Default behaviour : on * php.ini-development : off * php.ini-production : off ------------------------------------------------ php.ini descriptions : short_open_tag ------------------------------------------------ In 5_2 our reason for discouraging it is: ; - short_open_tag = Off [Portability] ; Using short tags is discouraged when developing code meant for redistribution ; since short tags may not be supported on the target server. ; Allow the tags are recognized. ; NOTE: Using short tags should be avoided when developing applications or ; libraries that are meant for redistribution, or deployment on PHP ; servers which are not under your control, because short tags may not ; be supported on the target server. For portable, redistributable code, ; be sure not to use short tags. In 5_3 it's: ; This directive determines whether or not PHP will recognize code between ; tags as PHP source which should be processed as such. It's been ; recommended for several years that you not use the short tag "short cut" and ; instead to use the full tag combination. With the wide spread use ; of XML and use of these tags by other languages, the server can become easily ; confused and end up parsing the wrong code in the wrong context. But because ; this short cut has been a feature for such a long time, it's currently still ; supported for backwards compatibility, but we recommend you don't use them. ------------------------------------------------ This history strongly suggests PHP is hoping and subtly forcing the world to stop using this directive, and although it's not deprecated the wording and treatment makes it feel it could be any day now. This situation must be clarified before 5_3 is released, and will likely require our BDFL to do it. In related news, what came of this RFC? It still says "Under Discussion": - http://wiki.php.net/rfc/shortags Regards, Philip