mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
MFH: Update the class method documentation links
This commit is contained in:
parent
77115c49ab
commit
d7f7fa0494
@ -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 @@ 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
|
||||
|
Loading…
Reference in New Issue
Block a user