kennyt          Wed Jan  7 20:09:34 2004 EDT

  Modified files:              
    /phpdoc/en/reference/tokenizer      constants.xml reference.xml 
  Log:
  Added docs and example concerning T_DOC_COMMENT.
  
  
Index: phpdoc/en/reference/tokenizer/constants.xml
diff -u phpdoc/en/reference/tokenizer/constants.xml:1.3 
phpdoc/en/reference/tokenizer/constants.xml:1.4
--- phpdoc/en/reference/tokenizer/constants.xml:1.3     Wed Jan  7 18:15:48 2004
+++ phpdoc/en/reference/tokenizer/constants.xml Wed Jan  7 20:09:33 2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
 <section id="tokenizer.constants">
  &reftitle.constants;
  &extension.constants;
@@ -1043,6 +1043,19 @@
   </varlistentry>
   <varlistentry>
    <term>
+    <constant>T_DOC_COMMENT</constant>
+    (<type>integer</type>)
+   </term>
+   <listitem>
+    <note>
+     <simpara>
+      <constant>T_DOC_COMMENT</constant> was introduced in PHP 5.
+     </simpara>
+    </note>
+   </listitem>
+  </varlistentry>
+  <varlistentry>
+   <term>
     <constant>T_OPEN_TAG</constant> 
     (<type>integer</type>)
    </term>
Index: phpdoc/en/reference/tokenizer/reference.xml
diff -u phpdoc/en/reference/tokenizer/reference.xml:1.15 
phpdoc/en/reference/tokenizer/reference.xml:1.16
--- phpdoc/en/reference/tokenizer/reference.xml:1.15    Wed Jan  7 18:15:48 2004
+++ phpdoc/en/reference/tokenizer/reference.xml Wed Jan  7 20:09:33 2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.15 $ -->
+<!-- $Revision: 1.16 $ -->
  <reference id="ref.tokenizer">
   <title>Tokenizer functions</title>
   <titleabbrev>Tokenizer</titleabbrev>
@@ -45,9 +45,14 @@
   /* T_ML_COMMENT does not exist in PHP 5.
    * The following three lines define it in order to
    * preserve backwards compatibility.
+   *
+   * The next two lines define the PHP5-only T_DOC_COMMENT,
+   * which we will mask as T_ML_COMMENT for PHP 4.
    */
   if (!defined('T_ML_COMMENT')) {
     define('T_ML_COMMENT', T_COMMENT);
+  } else {
+    define('T_DOC_COMMENT', T_ML_COMMENT);
   }
   foreach ($tokens as $token) {
     if (is_string($token)) {
@@ -59,6 +64,7 @@
       switch ($id) { 
         case T_COMMENT: 
         case T_ML_COMMENT: // we've defined this
+        case T_DOC_COMMENT: // and this
           // no action on comments
           break;
         default:

Reply via email to