mirror of
https://github.com/php/php-src.git
synced 2024-09-24 11:27:28 +00:00
MF51: fix #37053 (html_errors with internal classes produces wrong links)
This commit is contained in:
parent
ec12098c3b
commit
821aff2e9c
14
main/main.c
14
main/main.c
@ -608,10 +608,18 @@ 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) {
|
||||
if (function_name_is_string) {
|
||||
spprintf(&docref_buf, 0, "function.%s", function.s);
|
||||
if (space[0] == '\0') {
|
||||
if (function_name_is_string) {
|
||||
spprintf(&docref_buf, 0, "function.%s", function.s);
|
||||
} else {
|
||||
spprintf(&docref_buf, 0, "function.%v", function);
|
||||
}
|
||||
} else {
|
||||
spprintf(&docref_buf, 0, "function.%v", function);
|
||||
if (function_name_is_string) {
|
||||
spprintf(&docref_buf, 0, "function.%v-%s", class_name, function.s);
|
||||
} else {
|
||||
spprintf(&docref_buf, 0, "function.%v-%v", class_name, function);
|
||||
}
|
||||
}
|
||||
while((p = strchr(docref_buf, '_')) != NULL) {
|
||||
*p = '-';
|
||||
|
Loading…
Reference in New Issue
Block a user