Skip to content

Commit 6ba93a4

Browse files
committed
- Fixed bug #60732 (php_error_docref links to invalid pages) patch by: Jakub Vrana
1 parent 38eb909 commit 6ba93a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,9 @@ PHPAPI void php_verror(const char *docref, const char *params, int type, const c
784784
/* no docref given but function is known (the default) */
785785
if (!docref && is_function) {
786786
int doclen;
787+
while (*function == '_') {
788+
function++;
789+
}
787790
if (space[0] == '\0') {
788791
doclen = spprintf(&docref_buf, 0, "function.%s", function);
789792
} else {

0 commit comments

Comments
 (0)