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




-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to