20#ifndef ZEND_ATTRIBUTES_H
21#define ZEND_ATTRIBUTES_H
25#define ZEND_ATTRIBUTE_TARGET_CLASS (1<<0)
26#define ZEND_ATTRIBUTE_TARGET_FUNCTION (1<<1)
27#define ZEND_ATTRIBUTE_TARGET_METHOD (1<<2)
28#define ZEND_ATTRIBUTE_TARGET_PROPERTY (1<<3)
29#define ZEND_ATTRIBUTE_TARGET_CLASS_CONST (1<<4)
30#define ZEND_ATTRIBUTE_TARGET_PARAMETER (1<<5)
31#define ZEND_ATTRIBUTE_TARGET_ALL ((1<<6) - 1)
32#define ZEND_ATTRIBUTE_IS_REPEATABLE (1<<6)
33#define ZEND_ATTRIBUTE_FLAGS ((1<<7) - 1)
36#define ZEND_ATTRIBUTE_PERSISTENT (1<<0)
37#define ZEND_ATTRIBUTE_STRICT_TYPES (1<<1)
39#define ZEND_ATTRIBUTE_SIZE(argc) \
40 (sizeof(zend_attribute) + sizeof(zend_attribute_arg) * (argc) - sizeof(zend_attribute_arg))
zend_attribute_arg args[1]
void(* validator)(zend_attribute *attr, uint32_t target, zend_class_entry *scope)
ZEND_API zend_class_entry * zend_ce_override
ZEND_API zend_class_entry * zend_ce_sensitive_parameter_value
ZEND_API zend_class_entry * zend_ce_sensitive_parameter
ZEND_API zend_class_entry * zend_ce_allow_dynamic_properties
ZEND_API zend_class_entry * zend_ce_attribute
ZEND_API zend_class_entry * zend_ce_deprecated
ZEND_API zend_internal_attribute * zend_internal_attribute_get(zend_string *lcname)
ZEND_API zend_internal_attribute * zend_internal_attribute_register(zend_class_entry *ce, uint32_t flags)
ZEND_API zend_attribute * zend_add_attribute(HashTable **attributes, zend_string *name, uint32_t argc, uint32_t flags, uint32_t offset, uint32_t lineno)
ZEND_API zend_result zend_get_attribute_value(zval *ret, zend_attribute *attr, uint32_t i, zend_class_entry *scope)
ZEND_API bool zend_is_attribute_repeated(HashTable *attributes, zend_attribute *attr)
void zend_attributes_shutdown(void)
struct _zend_attribute zend_attribute
ZEND_API zend_attribute * zend_get_attribute(HashTable *attributes, zend_string *lcname)
struct _zend_internal_attribute zend_internal_attribute
uint32_t zend_attribute_attribute_get_flags(zend_attribute *attr, zend_class_entry *scope)
#define ZEND_ATTRIBUTE_PERSISTENT
ZEND_API zend_attribute * zend_get_parameter_attribute_str(HashTable *attributes, const char *str, size_t len, uint32_t offset)
ZEND_API zend_result zend_get_attribute_object(zval *out, zend_class_entry *attribute_ce, zend_attribute *attribute_data, zend_class_entry *scope, zend_string *filename)
ZEND_API zend_attribute * zend_get_attribute_str(HashTable *attributes, const char *str, size_t len)
void zend_register_attribute_ce(void)
ZEND_API zend_attribute * zend_get_parameter_attribute(HashTable *attributes, zend_string *lcname, uint32_t offset)
ZEND_API zend_string * zend_get_attribute_target_names(uint32_t targets)
ZEND_API zend_internal_attribute * zend_mark_internal_attribute(zend_class_entry *ce)
#define ZEND_USER_FUNCTION
struct _zend_class_constant zend_class_constant
struct _zend_property_info zend_property_info
ZEND_API void(ZEND_FASTCALL *zend_touch_vm_stack_data)(void *vm_stack_data)
union _zend_function zend_function
struct _zend_string zend_string
#define zend_always_inline
struct _zend_class_entry zend_class_entry
struct _zend_array HashTable
ZEND_RESULT_CODE zend_result