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

reflection: set key_initialized global to proper booleans (#20691)

Instead of using `1` and `0`, use `true` and `false`
This commit is contained in:
Daniel Scherzer
2025-12-17 21:14:57 -08:00
committed by GitHub
parent 65c367f982
commit c0b16e080b

View File

@@ -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;
} /* }}} */