bjori Sat Dec 29 02:21:25 2007 UTC Modified files: /php-src/main main.c Log: Update the class method documentation links http://cvs.php.net/viewvc.cgi/php-src/main/main.c?r1=1.753&r2=1.754&diff_format=u Index: php-src/main/main.c diff -u php-src/main/main.c:1.753 php-src/main/main.c:1.754 --- php-src/main/main.c:1.753 Thu Nov 22 13:33:53 2007 +++ php-src/main/main.c Sat Dec 29 02:21:25 2007 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: main.c,v 1.753 2007/11/22 13:33:53 dmitry Exp $ */ +/* $Id: main.c,v 1.754 2007/12/29 02:21:25 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 @@ -744,23 +745,24 @@ /* no docref given but function is known (the default) */ if (!docref && function.v) { + int doclen; if (space[0] == '\0') { if (function_name_is_string) { - spprintf(&docref_buf, 0, "function.%s", function.s); + doclen = spprintf(&docref_buf, 0, "function.%s", function.s); } else { - spprintf(&docref_buf, 0, "function.%v", function); + doclen = spprintf(&docref_buf, 0, "function.%v", function); } } else { if (function_name_is_string) { - spprintf(&docref_buf, 0, "function.%v-%s", class_name, function.s); + doclen = spprintf(&docref_buf, 0, "%v.%s", class_name, function.s); } else { - spprintf(&docref_buf, 0, "function.%v-%v", class_name, function); + doclen = spprintf(&docref_buf, 0, "%v.%v", 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