diff options
author | Hannes Magnusson <bjori@php.net> | 2007-12-29 02:21:25 +0000 |
---|---|---|
committer | Hannes Magnusson <bjori@php.net> | 2007-12-29 02:21:25 +0000 |
commit | 2ea5df33a771d2ed90bdcf789a20ebd6116add25 (patch) | |
tree | cbdc6858af186e1470c8f4b304ff7977d778f4bf /main | |
parent | 9320ac989345d375e6e14ce3cfcccd5537500e88 (diff) | |
download | php-git-2ea5df33a771d2ed90bdcf789a20ebd6116add25.tar.gz |
Update the class method documentation links
Diffstat (limited to 'main')
-rw-r--r-- | main/main.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/main/main.c b/main/main.c index c6816b8b94..f1280aa03a 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 @@ -744,23 +745,24 @@ 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 && 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 |