mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
...
This commit is contained in:
parent
0bc987c9b4
commit
1c1cc51295
3 changed files with 214 additions and 4 deletions
|
@ -63,10 +63,15 @@ int phpdbg_is_class_method(const char *str, size_t len, char **class, char **met
|
|||
return 0;
|
||||
}
|
||||
|
||||
*class = estrndup(str, sep - str);
|
||||
(*class)[sep - str] = 0;
|
||||
|
||||
*method = estrndup(sep+2, str + len - (sep + 2));
|
||||
if (class != NULL) {
|
||||
*class = estrndup(str, sep - str);
|
||||
(*class)[sep - str] = 0;
|
||||
}
|
||||
|
||||
if (method != NULL) {
|
||||
*method = estrndup(
|
||||
sep+2, str + len - (sep + 2));
|
||||
}
|
||||
|
||||
return 1;
|
||||
} /* }}} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue