diff options
author | Antony Dovgal <tony2001@php.net> | 2006-04-12 12:49:39 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-04-12 12:49:39 +0000 |
commit | d23c1d763be3bcc932f501634828f7a2f41beb60 (patch) | |
tree | aef59e3af690f9e9ca8c43d4a45a713995427328 | |
parent | f23d01ad4d7cbc5d1a0d382e1c896bdbfd9ad0d3 (diff) | |
download | php-git-d23c1d763be3bcc932f501634828f7a2f41beb60.tar.gz |
fix #37053 (html_errors with internal classes produces wrong links)
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | main/main.c | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -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) diff --git a/main/main.c b/main/main.c index 05612e664c..1bf2996b53 100644 --- a/main/main.c +++ b/main/main.c @@ -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 = '-'; } |