Commit 10751821189 for php.net
commit 10751821189a94185e6e0c8bde80d4fc1640073d
Author: Ilija Tovilo <ilija.tovilo@me.com>
Date: Tue Jan 13 13:15:31 2026 +0100
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.
diff --git a/Zend/zend_ast.c b/Zend/zend_ast.c
index e0a68a73bdf..cd8e6792d03 100644
--- a/Zend/zend_ast.c
+++ b/Zend/zend_ast.c
@@ -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);