Skip to content

Commit 0a50cba

Browse files
committed
fix unused assignment
1 parent cd7853b commit 0a50cba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Zend/zend_API.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2911,7 +2911,7 @@ static int zend_is_callable_check_func(int check_flags, zval *callable, zend_fca
29112911
zend_string *mname, *cname;
29122912
zend_string *lmname;
29132913
const char *colon;
2914-
size_t clen, mlen;
2914+
size_t clen;
29152915
HashTable *ftable;
29162916
int call_via_handler = 0;
29172917
zend_class_entry *scope;
@@ -2964,6 +2964,8 @@ static int zend_is_callable_check_func(int check_flags, zval *callable, zend_fca
29642964
colon > Z_STRVAL_P(callable) &&
29652965
*(colon-1) == ':'
29662966
) {
2967+
size_t mlen;
2968+
29672969
colon--;
29682970
clen = colon - Z_STRVAL_P(callable);
29692971
mlen = Z_STRLEN_P(callable) - clen - 2;
@@ -2996,7 +2998,6 @@ static int zend_is_callable_check_func(int check_flags, zval *callable, zend_fca
29962998
mname = zend_string_init(Z_STRVAL_P(callable) + clen + 2, mlen, 0);
29972999
} else if (ce_org) {
29983000
/* Try to fetch find static method of given class. */
2999-
mlen = Z_STRLEN_P(callable);
30003001
mname = Z_STR_P(callable);
30013002
zend_string_addref(mname);
30023003
ftable = &ce_org->function_table;

0 commit comments

Comments
 (0)