Commit c0b16e080b6 for php.net
commit c0b16e080b6e7bcb9be17bb71efe199d9cfcf18d
Author: Daniel Scherzer <daniel.e.scherzer@gmail.com>
Date: Wed Dec 17 21:14:57 2025 -0800
reflection: set `key_initialized` global to proper booleans (#20691)
Instead of using `1` and `0`, use `true` and `false`
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index c6f681ee227..64e79651913 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -7112,7 +7112,7 @@ ZEND_METHOD(ReflectionReference, getId)
RETURN_THROWS();
}
- REFLECTION_G(key_initialized) = 1;
+ REFLECTION_G(key_initialized) = true;
}
/* SHA1(ref || key) to avoid directly exposing memory addresses. */
@@ -7970,7 +7970,7 @@ PHP_MINIT_FUNCTION(reflection) /* {{{ */
reflection_property_hook_type_ptr = register_class_PropertyHookType();
- REFLECTION_G(key_initialized) = 0;
+ REFLECTION_G(key_initialized) = false;
return SUCCESS;
} /* }}} */