summaryrefslogtreecommitdiff
path: root/main/main.c
diff options
context:
space:
mode:
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) {