philip          Thu Oct 24 16:52:36 2002 EDT

  Modified files:              
    /phpdoc/scripts     xml_proto.php 
  Log:
  write_xml_files() : Check for references in argument names.  & -> &
  
  
Index: phpdoc/scripts/xml_proto.php
diff -u phpdoc/scripts/xml_proto.php:1.1 phpdoc/scripts/xml_proto.php:1.2
--- phpdoc/scripts/xml_proto.php:1.1    Tue Oct 22 10:52:37 2002
+++ phpdoc/scripts/xml_proto.php        Thu Oct 24 16:52:36 2002
@@ -16,7 +16,7 @@
 # | Authors:   Brad House <[EMAIL PROTECTED]>                             |
 # +----------------------------------------------------------------------+
 #
-# $Id: xml_proto.php,v 1.1 2002/10/22 14:52:37 goba Exp $
+# $Id: xml_proto.php,v 1.2 2002/10/24 20:52:36 philip Exp $
 */
 
 /*
@@ -109,7 +109,7 @@
     $functype=$funclist[$i]["function_type"];
 
     fwrite($fp, "<?xml version='1.0' encoding='iso-8859-1'?>\n" .
-               "<!-- $Revision: 1.1 $ -->\n" .
+               "<!-- $Revision: 1.2 $ -->\n" .
                "  <refentry id=\"function." . $fixname . "\">\n" .
                "   <refnamediv>\n" .
                "    <refname>$funcname</refname>\n" .
@@ -121,8 +121,8 @@
                "     <type>$functype</type><methodname>$funcname</methodname>\n");
 
     for ($j=0; $j<$funclist[$i]["num_args"]; $j++) {
-      $argtype=$funclist[$i]["args"][$j]["type"];
-      $argname=$funclist[$i]["args"][$j]["variable"];
+      $argtype = $funclist[$i]["args"][$j]["type"];
+      $argname = str_replace('&', '&amp;', $funclist[$i]["args"][$j]["variable"]);
       fwrite($fp, "     
<methodparam><type>$argtype</type><parameter>$argname</parameter></methodparam>\n");
     }
     if ($funclist[$i]["num_args"] == 0){



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

Reply via email to