1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix "fptr may be used uninitialized" warning

Older versions of GCC seem to get confused about the call to
zend_ast_call_get_args(ast), and assume it may mutate ast, even though it is
local.
This commit is contained in:
Ilija Tovilo
2026-01-13 13:15:31 +01:00
parent dc03108459
commit 1075182118

View File

@@ -1238,6 +1238,7 @@ static zend_result ZEND_FASTCALL zend_ast_evaluate_inner(
break;
}
EMPTY_SWITCH_DEFAULT_CASE()
}
zend_create_fake_closure(result, fptr, fptr->common.scope, called_scope, NULL);