Skip to content

Commit 5d0094e

Browse files
committed
Merge branch 'PHP-5.4' of https://git.php.net/repository/php-src into PHP-5.4
* 'PHP-5.4' of https://git.php.net/repository/php-src: - BFN - Fixed bug #60732 (php_error_docref links to invalid pages) patch by: Jakub Vrana
2 parents a52258a + 5ae1983 commit 5d0094e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ PHP NEWS
77
(David Soria Parra, Laruence)
88
. Fixed bug #65088 (Generated configure script is malformed on OpenBSD).
99
(Adam)
10+
. Fixed bug #60732 (php_error_docref links to invalid pages). (Jakub Vrana)
1011

1112
- CLI server:
1213
. Fixed bug #65066 (Cli server not responsive when responding with 422 http

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)