Skip to content

Commit 08393ad

Browse files
committed
disregard leading slash
1 parent 944ebb3 commit 08393ad

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

phpdbg_utils.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ PHPDBG_API int phpdbg_is_class_method(const char *str, size_t len, char **class,
115115
}
116116

117117
if (class != NULL) {
118+
119+
if (str[0] == '\\') {
120+
str++;
121+
len--;
122+
}
123+
118124
*class = estrndup(str, sep - str);
119125
(*class)[sep - str] = 0;
120126
}

0 commit comments

Comments
 (0)