Skip to content

Commit b6c4fbe

Browse files
committed
...
1 parent 99bbc8e commit b6c4fbe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

phpdbg_print.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ PHPDBG_PRINT(method) /* {{{ */
136136
if (zend_lookup_class(class_name, strlen(class_name), &ce TSRMLS_CC) == SUCCESS) {
137137
zend_function *fbc;
138138

139-
if (zend_hash_find(&(*ce)->function_table, func_name, strlen(func_name), (void**)&fbc) == SUCCESS) {
139+
if (zend_hash_find(&(*ce)->function_table, func_name, strlen(func_name)+1, (void**)&fbc) == SUCCESS) {
140140
phpdbg_notice(
141141
"%s Method %s",
142142
(fbc->type == ZEND_USER_FUNCTION) ? "User" : "Internal",

phpdbg_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ int phpdbg_is_class_method(const char *str, size_t len, char **class, char **met
6464
}
6565

6666
*class = estrndup(str, sep - str);
67-
class[sep - str] = 0;
67+
(*class)[sep - str] = 0;
6868

6969
*method = estrndup(sep+2, str + len - (sep + 2));
7070

0 commit comments

Comments
 (0)