cvs: php-src(PHP_5_2) /main main.c
| From: | Hannes Magnusson | Date: | Sat, 29 Dec 2007 02:22:23 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /main main.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-47634@lists.php.net to get a copy of this message | ||
bjori Sat Dec 29 02:22:23 2007 UTC
Modified files: (Branch: PHP_5_2)
/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.59&r2=1.640.2.23.2.60&diff_format=u
Index: php-src/main/main.c
diff -u php-src/main/main.c:1.640.2.23.2.59 php-src/main/main.c:1.640.2.23.2.60
--- php-src/main/main.c:1.640.2.23.2.59 Thu Oct 18 13:11:30 2007
+++ php-src/main/main.c Sat Dec 29 02:22:23 2007
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: main.c,v 1.640.2.23.2.59 2007/10/18 13:11:30 dmitry Exp $ */
+/* $Id: main.c,v 1.640.2.23.2.60 2007/12/29 02:22:23 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
@@ -647,15 +648,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