]> granicus.if.org Git - php/commitdiff
- Not needed strlen() here
authorFelipe Pena <felipensp@gmail.com>
Tue, 12 Nov 2013 02:54:22 +0000 (00:54 -0200)
committerFelipe Pena <felipensp@gmail.com>
Tue, 12 Nov 2013 02:54:22 +0000 (00:54 -0200)
phpdbg_prompt.c

index b71bd3d8203e754a2edec2f83b8205a3644bb59d..4f5c6e058cb7dccb1153dc72900352a818dd8067 100644 (file)
@@ -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);
                }