From: Marcus Boerger Date: Tue, 13 Aug 2002 09:37:51 +0000 (+0000) Subject: allow target anchor only for docref parameter X-Git-Tag: php-4.3.0dev_zend2_alpha3~97 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=968721bc55f49ab52745529dd5ffe886fbea7036;p=php allow target anchor only for docref parameter --- 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) {