22
33use bitflags:: bitflags;
44
5+ #[ cfg( feature = "enum" ) ]
6+ use crate :: ffi:: ZEND_ACC_ENUM ;
57#[ cfg( not( php82) ) ]
68use crate :: ffi:: ZEND_ACC_REUSE_GET_ITERATOR ;
79use crate :: ffi:: {
@@ -14,16 +16,16 @@ use crate::ffi::{
1416 PHP_INI_PERDIR , PHP_INI_SYSTEM , PHP_INI_USER , ZEND_ACC_ABSTRACT , ZEND_ACC_ANON_CLASS ,
1517 ZEND_ACC_CALL_VIA_TRAMPOLINE , ZEND_ACC_CHANGED , ZEND_ACC_CLOSURE , ZEND_ACC_CONSTANTS_UPDATED ,
1618 ZEND_ACC_CTOR , ZEND_ACC_DEPRECATED , ZEND_ACC_DONE_PASS_TWO , ZEND_ACC_EARLY_BINDING ,
17- ZEND_ACC_ENUM , ZEND_ACC_FAKE_CLOSURE , ZEND_ACC_FINAL , ZEND_ACC_GENERATOR ,
18- ZEND_ACC_HAS_FINALLY_BLOCK , ZEND_ACC_HAS_RETURN_TYPE , ZEND_ACC_HAS_TYPE_HINTS ,
19- ZEND_ACC_HEAP_RT_CACHE , ZEND_ACC_IMMUTABLE , ZEND_ACC_IMPLICIT_ABSTRACT_CLASS ,
20- ZEND_ACC_INTERFACE , ZEND_ACC_LINKED , ZEND_ACC_NEARLY_LINKED , ZEND_ACC_NEVER_CACHE ,
21- ZEND_ACC_NO_DYNAMIC_PROPERTIES , ZEND_ACC_PRELOADED , ZEND_ACC_PRIVATE , ZEND_ACC_PROMOTED ,
22- ZEND_ACC_PROTECTED , ZEND_ACC_PUBLIC , ZEND_ACC_RESOLVED_INTERFACES , ZEND_ACC_RESOLVED_PARENT ,
23- ZEND_ACC_RETURN_REFERENCE , ZEND_ACC_STATIC , ZEND_ACC_STRICT_TYPES , ZEND_ACC_TOP_LEVEL ,
24- ZEND_ACC_TRAIT , ZEND_ACC_TRAIT_CLONE , ZEND_ACC_UNRESOLVED_VARIANCE , ZEND_ACC_USES_THIS ,
25- ZEND_ACC_USE_GUARDS , ZEND_ACC_VARIADIC , ZEND_EVAL_CODE , ZEND_HAS_STATIC_IN_METHODS ,
26- ZEND_INTERNAL_FUNCTION , ZEND_USER_FUNCTION , Z_TYPE_FLAGS_SHIFT , _IS_BOOL,
19+ ZEND_ACC_FAKE_CLOSURE , ZEND_ACC_FINAL , ZEND_ACC_GENERATOR , ZEND_ACC_HAS_FINALLY_BLOCK ,
20+ ZEND_ACC_HAS_RETURN_TYPE , ZEND_ACC_HAS_TYPE_HINTS , ZEND_ACC_HEAP_RT_CACHE , ZEND_ACC_IMMUTABLE ,
21+ ZEND_ACC_IMPLICIT_ABSTRACT_CLASS , ZEND_ACC_INTERFACE , ZEND_ACC_LINKED , ZEND_ACC_NEARLY_LINKED ,
22+ ZEND_ACC_NEVER_CACHE , ZEND_ACC_NO_DYNAMIC_PROPERTIES , ZEND_ACC_PRELOADED , ZEND_ACC_PRIVATE ,
23+ ZEND_ACC_PROMOTED , ZEND_ACC_PROTECTED , ZEND_ACC_PUBLIC , ZEND_ACC_RESOLVED_INTERFACES ,
24+ ZEND_ACC_RESOLVED_PARENT , ZEND_ACC_RETURN_REFERENCE , ZEND_ACC_STATIC , ZEND_ACC_STRICT_TYPES ,
25+ ZEND_ACC_TOP_LEVEL , ZEND_ACC_TRAIT , ZEND_ACC_TRAIT_CLONE , ZEND_ACC_UNRESOLVED_VARIANCE ,
26+ ZEND_ACC_USES_THIS , ZEND_ACC_USE_GUARDS , ZEND_ACC_VARIADIC , ZEND_EVAL_CODE ,
27+ ZEND_HAS_STATIC_IN_METHODS , ZEND_INTERNAL_FUNCTION , ZEND_USER_FUNCTION , Z_TYPE_FLAGS_SHIFT ,
28+ _IS_BOOL,
2729} ;
2830
2931use std:: { convert:: TryFrom , fmt:: Display } ;
0 commit comments