Skip to content

Commit d296ca7

Browse files
reflection: set key_initialized global to proper booleans
Instead of using `1` and `0`, use `true` and `false`
1 parent 2ee5e6b commit d296ca7

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
@@ -7144,7 +7144,7 @@ ZEND_METHOD(ReflectionReference, getId)
71447144
RETURN_THROWS();
71457145
}
71467146

7147-
REFLECTION_G(key_initialized) = 1;
7147+
REFLECTION_G(key_initialized) = true;
71487148
}
71497149

71507150
/* SHA1(ref || key) to avoid directly exposing memory addresses. */
@@ -8002,7 +8002,7 @@ PHP_MINIT_FUNCTION(reflection) /* {{{ */
80028002

80038003
reflection_property_hook_type_ptr = register_class_PropertyHookType();
80048004

8005-
REFLECTION_G(key_initialized) = 0;
8005+
REFLECTION_G(key_initialized) = false;
80068006

80078007
return SUCCESS;
80088008
} /* }}} */

0 commit comments

Comments
 (0)