mirror of
https://github.com/php/php-src.git
synced 2026-04-22 23:48:14 +02:00
disregard leading slash
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user