summaryrefslogtreecommitdiff
path: root/main/main.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-08-13 09:37:51 +0000
committerMarcus Boerger <helly@php.net>2002-08-13 09:37:51 +0000
commit968721bc55f49ab52745529dd5ffe886fbea7036 (patch)
tree651511f5867f6339a532a066e850f9ee66351570 /main/main.c
parent2eaa0f6ea140ff70a6d244dca1392c99c7084fbd (diff)
downloadphp-git-968721bc55f49ab52745529dd5ffe886fbea7036.tar.gz
allow target anchor only for docref parameter
Diffstat (limited to 'main/main.c')
-rw-r--r--main/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/main.c b/main/main.c
index fc6be42a63..75530da757 100644
--- a/main/main.c
+++ b/main/main.c
@@ -396,6 +396,10 @@ PHPAPI void php_verror(const char *docref, const char *params, int type, const c
vspprintf(&buffer, 0, format, args);
if (buffer) {
+ if (docref && docref[0] == '#') {
+ docref_target = strchr(docref, '#');
+ docref = NULL;
+ }
if (!docref) {
function = get_active_function_name(TSRMLS_C);
if (function) {