Skip to content

Commit

Permalink
Use param->len instead of strlen
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsdos committed Dec 18, 2023
1 parent e6e0231 commit dd0f2ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sapi/phpdbg/phpdbg_prompt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1417,7 +1417,7 @@ PHPDBG_COMMAND(register) /* {{{ */
{
zend_function *function;
char *lcname = zend_str_tolower_dup(param->str, param->len);
size_t lcname_len = strlen(lcname);
size_t lcname_len = param->len;

if (!zend_hash_str_exists(&PHPDBG_G(registered), lcname, lcname_len)) {
if ((function = zend_hash_str_find_ptr(EG(function_table), lcname, lcname_len))) {
Expand Down

0 comments on commit dd0f2ab

Please sign in to comment.