]> granicus.if.org Git - php/commitdiff
- Fixed bug #60732 (php_error_docref links to invalid pages) patch by: Jakub Vrana
authorFelipe Pena <felipensp@gmail.com>
Tue, 25 Jun 2013 19:26:26 +0000 (16:26 -0300)
committerFelipe Pena <felipensp@gmail.com>
Tue, 25 Jun 2013 19:26:26 +0000 (16:26 -0300)
main/main.c

index c0db64d184ee12d298a514de05da1b867e489d23..2821dfcdca29ab98eef14b6f3ee413d5b6d00f2a 100644 (file)
@@ -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 {