Skip to content

Commit 66770f9

Browse files
committed
Added missing set of fcc->initialized flag.
1 parent 84b608d commit 66770f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Zend/zend_API.c

+2
Original file line numberDiff line numberDiff line change
@@ -2941,6 +2941,7 @@ static int zend_is_callable_check_func(int check_flags, zval *callable, zend_fca
29412941
if (lmname != Z_STR_P(callable)) {
29422942
ZSTR_ALLOCA_FREE(lmname, use_heap);
29432943
}
2944+
fcc->initialized = 1;
29442945
return 1;
29452946
} else {
29462947
if (lmname == Z_STR_P(callable)) {
@@ -2951,6 +2952,7 @@ static int zend_is_callable_check_func(int check_flags, zval *callable, zend_fca
29512952
zend_str_tolower(ZSTR_VAL(lmname), ZSTR_LEN(lmname));
29522953
if ((fcc->function_handler = zend_hash_find_ptr(EG(function_table), lmname)) != NULL) {
29532954
ZSTR_ALLOCA_FREE(lmname, use_heap);
2955+
fcc->initialized = 1;
29542956
return 1;
29552957
}
29562958
}

0 commit comments

Comments
 (0)