com php-src: - Not needed strlen() here: phpdbg_prompt.c
| From: | Bob Weinand | Date: | Tue, 12 Nov 2013 02:54:22 +0000 |
| Subject: | com php-src: - Not needed strlen() here: phpdbg_prompt.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-75093@lists.php.net to get a copy of this message | ||
Commit: f704fdea57d32cc8fa4bd98a208d9c8428bc05e4
Author: Felipe Pena <felipensp@gmail.com> Tue, 12 Nov 2013 00:54:22 -0200
Parents: 6658f58d4afcb80ffaeac460564aecb1591ecd93
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f704fdea57d32cc8fa4bd98a208d9c8428bc05e4
Log:
- Not needed strlen() here
Changed paths:
M phpdbg_prompt.c
Diff:
diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c
index b71bd3d..4f5c6e0 100644
--- a/phpdbg_prompt..c
+++ b/phpdbg_prompt.c
@@ -519,7 +519,7 @@ static PHPDBG_COMMAND(list) /* {{{ */
return SUCCESS;
}
- if (zend_hash_find(EG(function_table), expr, strlen(expr)+1,
+ if (zend_hash_find(EG(function_table), expr, expr_len,
(void**)&fbc) == SUCCESS) {
phpdbg_list_function(fbc TSRMLS_CC);
}