bjori           Sat Dec 29 02:21:57 2007 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/main       main.c 
  Log:
  MFH: Update the class method documentation links
  
  
http://cvs.php.net/viewvc.cgi/php-src/main/main.c?r1=1.640.2.23.2.57.2.4&r2=1.640.2.23.2.57.2.5&diff_format=u
Index: php-src/main/main.c
diff -u php-src/main/main.c:1.640.2.23.2.57.2.4 
php-src/main/main.c:1.640.2.23.2.57.2.5
--- php-src/main/main.c:1.640.2.23.2.57.2.4     Thu Nov 22 13:27:13 2007
+++ php-src/main/main.c Sat Dec 29 02:21:57 2007
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: main.c,v 1.640.2.23.2.57.2.4 2007/11/22 13:27:13 dmitry Exp $ */
+/* $Id: main.c,v 1.640.2.23.2.57.2.5 2007/12/29 02:21:57 bjori Exp $ */
 
 /* {{{ includes
  */
@@ -58,6 +58,7 @@
 #include "php_main.h"
 #include "fopen_wrappers.h"
 #include "ext/standard/php_standard.h"
+#include "ext/standard/php_string.h"
 #include "php_variables.h"
 #include "ext/standard/credits.h"
 #ifdef PHP_WIN32
@@ -650,15 +651,16 @@
 
        /* no docref given but function is known (the default) */
        if (!docref && is_function) {
+               int doclen;
                if (space[0] == '\0') {
-                       spprintf(&docref_buf, 0, "function.%s", function);
+                       doclen = spprintf(&docref_buf, 0, "function.%s", 
function);
                } else {
-                       spprintf(&docref_buf, 0, "function.%s-%s", class_name, 
function);
+                       doclen = spprintf(&docref_buf, 0, "%s.%s", class_name, 
function);
                }
                while((p = strchr(docref_buf, '_')) != NULL) {
                        *p = '-';
                }
-               docref = docref_buf;
+               docref = php_strtolower(docref_buf, doclen);
        }
 
        /* we have a docref for a function AND

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

Reply via email to