dbs             Mon May  9 09:54:03 2005 EDT

  Modified files:              
    /phpdoc/scripts     xml_proto.php 
  Log:
  Fix extension names with illegal characters. Leave directory names as-is.
  Fix undefined reference to $num_const in write_reference_xml.
  
  
http://cvs.php.net/diff.php/phpdoc/scripts/xml_proto.php?r1=1.24&r2=1.25&ty=u
Index: phpdoc/scripts/xml_proto.php
diff -u phpdoc/scripts/xml_proto.php:1.24 phpdoc/scripts/xml_proto.php:1.25
--- phpdoc/scripts/xml_proto.php:1.24   Tue Apr 12 19:55:26 2005
+++ phpdoc/scripts/xml_proto.php        Mon May  9 09:54:03 2005
@@ -16,7 +16,7 @@
   | Authors:   Brad House <[EMAIL PROTECTED]>                             |
   +----------------------------------------------------------------------+
  
-  $Id: xml_proto.php,v 1.24 2005/04/12 23:55:26 dbs Exp $
+  $Id: xml_proto.php,v 1.25 2005/05/09 13:54:03 dbs Exp $
 */
 
 /*
@@ -130,6 +130,7 @@
 function write_reference_xml()
 {
   global $extension_name, $constant_dir, $version;
+  global $num_const;
 
   $filename= $constant_dir. "reference.xml";
   $fp=fopen($filename, "wb");
@@ -139,7 +140,7 @@
   }
 
   fwrite($fp, '<?xml version="1.0" encoding="iso-8859-1"?>'."\n" .
-       '<!-- $Revision: 1.24 $ -->'."\n" .
+       '<!-- $Revision: 1.25 $ -->'."\n" .
        "<!-- Generated by xml_proto.php v" . $version . ". Found in /scripts 
directory of phpdoc. -->\n" .
        "<reference id=\"ref." . $extension_name . "\">\n" .
        " <title>$extension_name Functions</title>\n" .
@@ -224,7 +225,7 @@
     $functype = trim($funclist[$i]["function_type"]);
 
     fwrite($fp, '<?xml version="1.0" encoding="iso-8859-1"?>'."\n" .
-               '<!-- $Revision: 1.24 $ -->'."\n" .
+               '<!-- $Revision: 1.25 $ -->'."\n" .
                "<!-- Generated by xml_proto.php v" . $version . ". Found in 
/scripts directory of phpdoc. -->\n" .
                "<refentry id=\"function." . $fixname . "\">\n" .
                " <refnamediv>\n" .
@@ -896,6 +897,9 @@
   }
 }
 
+/* Extension names may contain undesirable characters for element IDs */
+$extension_name = fix_name($extension_name);
+
 create_xml_docs();
 
 echo <<<NOTES

Reply via email to