]> granicus.if.org Git - php/commitdiff
allow target anchor only for docref parameter
authorMarcus Boerger <helly@php.net>
Tue, 13 Aug 2002 09:37:51 +0000 (09:37 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 13 Aug 2002 09:37:51 +0000 (09:37 +0000)
main/main.c

index fc6be42a63377b3b6e014518934f2c5dba886647..75530da7578c1a191e069df68313d5acb6667156 100644 (file)
@@ -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) {