1
0
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:
krakjoe
2013-12-18 17:00:26 +00:00
parent 944ebb36c8
commit 08393ad2ac
+6
View File
@@ -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;
}