[php-src] master: reflection: use ZEND_FCC_INITIALIZED macro for lazy objects
| From: | Gina Peter Banyard | Date: | Wed, 30 Sep 2026 14:44:16 +0000 |
| Subject: | [php-src] master: reflection: use ZEND_FCC_INITIALIZED macro for lazy objects | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-141786@lists.php.net to get a copy of this message | ||
Author: Gina Peter Banyard (Girgias)
Date: 2026-09-30T15:44:06+01:00
Commit: https://github.com/php/php-src/commit/484d324dc736cd374e6e0f0b3508b6f44a95ba88
Raw diff: https://github.com/php/php-src/commit/484d324dc736cd374e6e0f0b3508b6f44a95ba88.diff
reflection: use ZEND_FCC_INITIALIZED macro for lazy objects
Changed paths:
M ext/reflection/php_reflection.c
Diff:
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index c140109dae28..7e821f8e12b7 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. */