diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 5c43c6004807f..531db004b3ba6 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -5222,8 +5222,7 @@ void reflection_class_new_lazy(INTERNAL_FUNCTION_PARAMETERS, obj = NULL; } - zend_long accepted_flags = ZEND_LAZY_OBJECT_USER_MASK; - if (options & ~accepted_flags) { + if (options & ~ZEND_LAZY_OBJECT_USER_MASK) { uint32_t arg_num = 2 + is_reset; zend_argument_error(reflection_exception_ptr, arg_num, "contains invalid flags");