From 6ba93a4bae355ac1d247d1e474381bb92d1eb038 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Tue, 25 Jun 2013 16:26:26 -0300 Subject: [PATCH] - Fixed bug #60732 (php_error_docref links to invalid pages) patch by: Jakub Vrana --- main/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/main.c b/main/main.c index c0db64d184..2821dfcdca 100644 --- a/main/main.c +++ b/main/main.c @@ -784,6 +784,9 @@ 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; + while (*function == '_') { + function++; + } if (space[0] == '\0') { doclen = spprintf(&docref_buf, 0, "function.%s", function); } else { -- 2.50.1