Skip to content

Commit c0b16e0

Browse files
reflection: set key_initialized global to proper booleans (#20691)
Instead of using `1` and `0`, use `true` and `false`
1 parent 65c367f commit c0b16e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/reflection/php_reflection.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7112,7 +7112,7 @@ ZEND_METHOD(ReflectionReference, getId)
71127112
RETURN_THROWS();
71137113
}
71147114

7115-
REFLECTION_G(key_initialized) = 1;
7115+
REFLECTION_G(key_initialized) = true;
71167116
}
71177117

71187118
/* SHA1(ref || key) to avoid directly exposing memory addresses. */
@@ -7970,7 +7970,7 @@ PHP_MINIT_FUNCTION(reflection) /* {{{ */
79707970

79717971
reflection_property_hook_type_ptr = register_class_PropertyHookType();
79727972

7973-
REFLECTION_G(key_initialized) = 0;
7973+
REFLECTION_G(key_initialized) = false;
79747974

79757975
return SUCCESS;
79767976
} /* }}} */

0 commit comments

Comments
 (0)