From: Felipe Pena Date: Tue, 12 Nov 2013 02:54:22 +0000 (-0200) Subject: - Not needed strlen() here X-Git-Tag: php-5.6.0alpha1~110^2~451^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f704fdea57d32cc8fa4bd98a208d9c8428bc05e4;p=php - Not needed strlen() here --- diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index b71bd3d820..4f5c6e058c 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); }