Skip to content

Commit

Permalink
disregard leading slash
Browse files Browse the repository at this point in the history
  • Loading branch information
krakjoe committed Dec 18, 2013
1 parent 944ebb3 commit 08393ad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions phpdbg_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ PHPDBG_API int phpdbg_is_class_method(const char *str, size_t len, char **class,
}

if (class != NULL) {

if (str[0] == '\\') {
str++;
len--;
}

*class = estrndup(str, sep - str);
(*class)[sep - str] = 0;
}
Expand Down

0 comments on commit 08393ad

Please sign in to comment.