philip          Tue Jul  2 22:29:14 2002 EDT

  Modified files:              
    /phpdoc/en/chapters config.xml 
  Log:
  short_open_tag:
   - Can use <?php echo '<?xml version="1.0"'; ?> for xml if on
   - <?= won't work if off
   - <?xml works inline if short_open_tag if off
  
  
Index: phpdoc/en/chapters/config.xml
diff -u phpdoc/en/chapters/config.xml:1.58 phpdoc/en/chapters/config.xml:1.59
--- phpdoc/en/chapters/config.xml:1.58  Tue Jul  2 20:19:19 2002
+++ phpdoc/en/chapters/config.xml       Tue Jul  2 22:29:14 2002
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.58 $ -->
+<!-- $Revision: 1.59 $ -->
  <chapter id="configuration">
   <title>Configuration</title>
 
@@ -743,7 +743,7 @@
         </note>
        </listitem>
       </varlistentry>
-                
+
       <varlistentry id="ini.short-open-tag">
        <term>
         <parameter>short_open_tag</parameter>
@@ -753,9 +753,20 @@
         <para>
          Tells whether the short form (<userinput>&lt;? ?&gt;</userinput>)
          of PHP's open tag should be allowed.  If you want to use PHP in
-         combination with XML, you have to disable this option.  If
-         disabled, you must use the long form of the open tag
-         (<userinput>&lt;?php ?&gt;</userinput>).</para>
+         combination with XML, you can disable this option in order to 
+         use (<userinput>&lt;?xml ?&gt;</userinput> inline.  Otherwise, you 
+         can print it with PHP, for example: <userinput>&lt;?php echo '&lt;?xml 
+         version="1.0"'; ?&gt;</userinput>.  Also if disabled, you must use the 
+         long form of the PHP open tag (<userinput>&lt;?php ?&gt;</userinput>).
+        </para>
+        <note>
+         <para>
+          This directive also affects the shorthand <userinput>&lt;?=</userinput>, 
+          which is identical to <userinput>&lt;? echo</userinput>.  Use of this 
+          shortcut requires <systemitem role="directive">short_open_tag</systemitem>
+          to be on.
+         </para>
+        </note>
        </listitem>
       </varlistentry>
 



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to