Re: short_open_tag

From: Date: Thu, 17 Oct 2002 09:10:34 +0000
Subject: Re: short_open_tag
References: 1 2 3 4 5  Groups: php.dev 
Request: Send a blank email to php-dev+get-89622@lists.php.net to get a copy of this message
Zeev Suraski wrote:
No, we shouldn't have. It is not a deprecated feature or a discouraged feature. If you use the *FAIRLY RARE* combination of using PHP to generate XML, you'd have to configure your PHP. If you're with the vast majority of the population and couldn't care less about writing XML-embedded scripts, you enjoy a working short tag.
I know it's a kind of religious issue :) Anyway, if it's rare we don't need "<?xml" awareness in parser. We are better to note php.ini-dist/recommened that portable script writer should not depend on short tags. Any objection for adding the comment? NOTE: The same comment in Basic Syntax section of the manual. Index: php.ini-dist =================================================================== RCS file: /repository/php4/php.ini-dist,v retrieving revision 1.165 diff -u -r1.165 php.ini-dist
--- php.ini-dist        9 Oct 2002 09:03:04 -0000       1.165
+++ php.ini-dist        17 Oct 2002 09:08:02 -0000
@@ -67,7 +67,12 @@ ; Enable the PHP scripting language engine under Apache. engine = On -; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized. +; Allow the <? tag. Otherwise, only <?php and <script> 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. short_open_tag = On ; Allow ASP-style <% %> tags. -- Yasuo Ohgaki

« previous php.dev (#89622) next »