com php-src: ...: phpdbg_print.c phpdbg_utils.c
| From: | Bob Weinand | Date: | Wed, 13 Nov 2013 05:39:18 +0000 |
| Subject: | com php-src: ...: phpdbg_print.c phpdbg_utils.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-75028@lists.php.net to get a copy of this message | ||
Commit: b6c4fbee1b4e0fbfea56d335142a917b40b42a25
Author: krakjoe <joe.watkins@live.co.uk> Wed, 13 Nov 2013 05:39:18 +0000
Parents: 99bbc8e8118804367cf4a77f0c9b66118135229f
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b6c4fbee1b4e0fbfea56d335142a917b40b42a25
Log:
..
Changed paths:
M phpdbg_print.c
M phpdbg_utils.c
Diff:
diff --git a/phpdbg_print.c b/phpdbg_print.c
index 6ef3d4c..1524ec5 100644
--- a/phpdbg_print.c
+++ b/phpdbg_print.c
@@ -136,7 +136,7 @@ PHPDBG_PRINT(method) /* {{{ */
if (zend_lookup_class(class_name, strlen(class_name), &ce TSRMLS_CC) == SUCCESS) {
zend_function *fbc;
- if (zend_hash_find(&(*ce)->function_table, func_name, strlen(func_name),
(void**)&fbc) == SUCCESS) {
+ if (zend_hash_find(&(*ce)->function_table, func_name, strlen(func_name)+1,
(void**)&fbc) == SUCCESS) {
phpdbg_notice(
"%s Method %s",
(fbc->type == ZEND_USER_FUNCTION) ? "User" :
"Internal",
diff --git a/phpdbg_utils.c b/phpdbg_utils.c
index b567850..df37df0 100644
--- a/phpdbg_utils.c
+++ b/phpdbg_utils.c
@@ -64,7 +64,7 @@ int phpdbg_is_class_method(const char *str, size_t len, char **class, char **met
}
*class = estrndup(str, sep - str);
- class[sep - str] = 0;
+ (*class)[sep - str] = 0;
*method = estrndup(sep+2, str + len - (sep + 2));