Skip to content

Commit 80b1ede

Browse files
committed
[skip ci] Fix uninitialized fn_flags2 for internal functions
This field is still unused on master, but required for GH-19941.
1 parent 44d4f0e commit 80b1ede

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/zend_API.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3045,6 +3045,7 @@ ZEND_API zend_result zend_register_functions(zend_class_entry *scope, const zend
30453045
internal_function->prop_info = NULL;
30463046
internal_function->attributes = NULL;
30473047
internal_function->frameless_function_infos = ptr->frameless_function_infos;
3048+
internal_function->fn_flags2 = 0;
30483049
if (EG(active)) { // at run-time: this ought to only happen if registered with dl() or somehow temporarily at runtime
30493050
ZEND_MAP_PTR_INIT(internal_function->run_time_cache, zend_arena_calloc(&CG(arena), 1, zend_internal_run_time_cache_reserved_size()));
30503051
} else {

0 commit comments

Comments
 (0)