nlopess         Sun Dec 26 12:47:22 2004 EDT

  Modified files:              
    /phpdoc/scripts     genfuncindex.php 
  Log:
  make PHP5 friendly and handle the '>' char correctly
  
http://cvs.php.net/diff.php/phpdoc/scripts/genfuncindex.php?r1=1.13&r2=1.14&ty=u
Index: phpdoc/scripts/genfuncindex.php
diff -u phpdoc/scripts/genfuncindex.php:1.13 
phpdoc/scripts/genfuncindex.php:1.14
--- phpdoc/scripts/genfuncindex.php:1.13        Sat Nov 20 18:35:39 2004
+++ phpdoc/scripts/genfuncindex.php     Sun Dec 26 12:47:21 2004
@@ -16,7 +16,7 @@
   | Authors:    Hartmut Holzgraefe <[EMAIL PROTECTED]>                    |
   +----------------------------------------------------------------------+
  
-  $Id: genfuncindex.php,v 1.13 2004/11/20 23:35:39 techtonik Exp $
+  $Id: genfuncindex.php,v 1.14 2004/12/26 17:47:21 nlopess Exp $
 */
 echo "<" . "?xml version='1.0' encoding='iso-8859-1'?" . ">\n";
 ?>
@@ -26,16 +26,18 @@
  <index id="index.functions">
   <title>&FunctionIndex;</title>
 <?php
-$functions = file($HTTP_SERVER_VARS['argv'][1]);
+$functions = file($_SERVER['argv'][1]);
 usort($functions,"strcasecmp");
 $letter = ' ';
+
 foreach ( $functions as $funcentry ) {
     list($function,$description) = explode(" - ",$funcentry);
 
     if (!ereg("::|->", $function)) {
         $function = strtolower(trim($function));
     }
-    if (!ereg("^[[:alnum:]]",$function)) continue;
+
+    $function = str_replace('>', '&#62;', $function);
 
     if (strtolower($function{0}) != $letter) {
         if ($letter != ' ') {

Reply via email to