summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--phpdbg_utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpdbg_utils.c b/phpdbg_utils.c
index 8584d20a03..86c17a71be 100644
--- a/phpdbg_utils.c
+++ b/phpdbg_utils.c
@@ -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;
}