Skip to content

Commit f704fde

Browse files
committed
- Not needed strlen() here
1 parent 6658f58 commit f704fde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpdbg_prompt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ static PHPDBG_COMMAND(list) /* {{{ */
519519
return SUCCESS;
520520
}
521521

522-
if (zend_hash_find(EG(function_table), expr, strlen(expr)+1,
522+
if (zend_hash_find(EG(function_table), expr, expr_len,
523523
(void**)&fbc) == SUCCESS) {
524524
phpdbg_list_function(fbc TSRMLS_CC);
525525
}

0 commit comments

Comments
 (0)