]> granicus.if.org Git - php/commitdiff
fix #37053 (html_errors with internal classes produces wrong links)
authorAntony Dovgal <tony2001@php.net>
Wed, 12 Apr 2006 12:49:39 +0000 (12:49 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 12 Apr 2006 12:49:39 +0000 (12:49 +0000)
NEWS
main/main.c

diff --git a/NEWS b/NEWS
index 30ca4743e5c470f7ce989eebe390d547e075df6f..d05ec59ad0d914375ca3211c300cb64481eee41d 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,8 @@
 PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? Apr 2006, PHP 5.1.3
+- Fixed bug #37053 (html_errors with internal classes produces wrong links). 
+  (Tony)
 - Fixed bug #37046 (foreach breaks static scope). (Dmitry)
 - Fixed bug #37002 (Have to quote literals in INI when concatenating with
   vars). (Dmitry)
index 05612e664cab0f3882ad2354d9227fa2609bf638..1bf2996b53ae73228c4929bdc5ff972912106f04 100644 (file)
@@ -509,7 +509,11 @@ 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) {
-               spprintf(&docref_buf, 0, "function.%s", function);
+               if (space[0] == '\0') {
+                       spprintf(&docref_buf, 0, "function.%s", function);
+               } else {
+                       spprintf(&docref_buf, 0, "function.%s-%s", class_name, function);
+               }
                while((p = strchr(docref_buf, '_')) != NULL) {
                        *p = '-';
                }