summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannes Magnusson <bjori@php.net>2007-12-29 02:22:23 +0000
committerHannes Magnusson <bjori@php.net>2007-12-29 02:22:23 +0000
commitdbbd4bf1b8e094485b150a38a2eda91693c5eb85 (patch)
tree60dccbd953728f7e403694faaa986573354a9d6d
parentdf9e324f352ef3ff898f0df3c421ca023303c2c4 (diff)
downloadphp-git-dbbd4bf1b8e094485b150a38a2eda91693c5eb85.tar.gz
MFH: Update the class method documentation links
-rw-r--r--main/main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/main/main.c b/main/main.c
index 5438197955..43081792c1 100644
--- a/main/main.c
+++ b/main/main.c
@@ -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 @@ PHPAPI void php_verror(const char *docref, const char *params, int type, const c
/* 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