Commit 484d324dc73 for php
commit 484d324dc736cd374e6e0f0b3508b6f44a95ba88
Author: Gina Peter Banyard <girgias@php.net>
Date: Tue Sep 29 18:09:58 2026 +0100
reflection: use ZEND_FCC_INITIALIZED macro for lazy objects
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index c140109dae2..7e821f8e12b 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -5138,7 +5138,7 @@ void reflection_class_new_lazy(INTERNAL_FUNCTION_PARAMETERS,
obj = NULL;
}
- if (!fcc.function_handler) {
+ if (!ZEND_FCC_INITIALIZED(fcc)) {
/* Call trampoline has been cleared by zpp. Refetch it, because we want to deal
* with it ourselves. It is important that it is not refetched on every call,
* because calls may occur from different scopes. */