$34 GRAYBYTE WORDPRESS FILE MANAGER $11

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/php85/usr/include/php/Zend/

HOME
Current File : /opt/alt/php85/usr/include/php/Zend//zend_attributes.h
/*
   +----------------------------------------------------------------------+
   | Zend Engine                                                          |
   +----------------------------------------------------------------------+
   | Copyright (c) Zend Technologies Ltd. (http://www.zend.com)           |
   +----------------------------------------------------------------------+
   | This source file is subject to version 2.00 of the Zend license,     |
   | that is bundled with this package in the file LICENSE, and is        |
   | available through the world-wide-web at the following url:           |
   | http://www.zend.com/license/2_00.txt.                                |
   | If you did not receive a copy of the Zend license and are unable to  |
   | obtain it through the world-wide-web, please send a note to          |
   | [email protected] so we can mail you a copy immediately.              |
   +----------------------------------------------------------------------+
   | Authors: Benjamin Eberlei <[email protected]>                      |
   |          Martin Schröder <[email protected]>                 |
   +----------------------------------------------------------------------+
*/

#ifndef ZEND_ATTRIBUTES_H
#define ZEND_ATTRIBUTES_H

#include "zend_compile.h"
#include "zend_constants.h"

#define ZEND_ATTRIBUTE_TARGET_CLASS			(1<<0)
#define ZEND_ATTRIBUTE_TARGET_FUNCTION		(1<<1)
#define ZEND_ATTRIBUTE_TARGET_METHOD		(1<<2)
#define ZEND_ATTRIBUTE_TARGET_PROPERTY		(1<<3)
#define ZEND_ATTRIBUTE_TARGET_CLASS_CONST	(1<<4)
#define ZEND_ATTRIBUTE_TARGET_PARAMETER		(1<<5)
#define ZEND_ATTRIBUTE_TARGET_CONST			(1<<6)
#define ZEND_ATTRIBUTE_TARGET_ALL			((1<<7) - 1)
#define ZEND_ATTRIBUTE_IS_REPEATABLE		(1<<7)
#define ZEND_ATTRIBUTE_FLAGS				((1<<8) - 1)

/* Flags for zend_attribute.flags */
#define ZEND_ATTRIBUTE_PERSISTENT   (1<<0)
#define ZEND_ATTRIBUTE_STRICT_TYPES (1<<1)

#define ZEND_ATTRIBUTE_SIZE(argc) \
	(sizeof(zend_attribute) + sizeof(zend_attribute_arg) * (argc) - sizeof(zend_attribute_arg))

BEGIN_EXTERN_C()

extern ZEND_API zend_class_entry *zend_ce_attribute;
extern ZEND_API zend_class_entry *zend_ce_allow_dynamic_properties;
extern ZEND_API zend_class_entry *zend_ce_sensitive_parameter;
extern ZEND_API zend_class_entry *zend_ce_sensitive_parameter_value;
extern ZEND_API zend_class_entry *zend_ce_override;
extern ZEND_API zend_class_entry *zend_ce_deprecated;
extern ZEND_API zend_class_entry *zend_ce_nodiscard;
extern ZEND_API zend_class_entry *zend_ce_delayed_target_validation;

typedef struct {
	zend_string *name;
	zval value;
} zend_attribute_arg;

typedef struct _zend_attribute {
	zend_string *name;
	zend_string *lcname;
	/* Only non-null for internal attributes with validation errors that are
	 * delayed until runtime via #[\DelayedTargetValidation] */
	zend_string *validation_error;
	uint32_t flags;
	uint32_t lineno;
	/* Parameter offsets start at 1, everything else uses 0. */
	uint32_t offset;
	uint32_t argc;
	zend_attribute_arg args[1];
} zend_attribute;

typedef struct _zend_internal_attribute {
	zend_class_entry *ce;
	uint32_t flags;
	zend_string* (*validator)(zend_attribute *attr, uint32_t target, zend_class_entry *scope);
} zend_internal_attribute;

ZEND_API zend_attribute *zend_get_attribute(HashTable *attributes, zend_string *lcname);
ZEND_API zend_attribute *zend_get_attribute_str(HashTable *attributes, const char *str, size_t len);

ZEND_API zend_attribute *zend_get_parameter_attribute(HashTable *attributes, zend_string *lcname, uint32_t offset);
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_value(zval *ret, zend_attribute *attr, uint32_t i, zend_class_entry *scope);
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_string *zend_get_attribute_target_names(uint32_t targets);
ZEND_API bool zend_is_attribute_repeated(HashTable *attributes, zend_attribute *attr);

ZEND_API zend_internal_attribute *zend_mark_internal_attribute(zend_class_entry *ce);
ZEND_API zend_internal_attribute *zend_internal_attribute_register(zend_class_entry *ce, uint32_t flags);
ZEND_API zend_internal_attribute *zend_internal_attribute_get(zend_string *lcname);

ZEND_API zend_attribute *zend_add_attribute(
		HashTable **attributes, zend_string *name, uint32_t argc,
		uint32_t flags, uint32_t offset, uint32_t lineno);

uint32_t zend_attribute_attribute_get_flags(zend_attribute *attr, zend_class_entry *scope);

END_EXTERN_C()

static zend_always_inline zend_attribute *zend_add_class_attribute(zend_class_entry *ce, zend_string *name, uint32_t argc)
{
	uint32_t flags = ce->type != ZEND_USER_CLASS ? ZEND_ATTRIBUTE_PERSISTENT : 0;
	return zend_add_attribute(&ce->attributes, name, argc, flags, 0, 0);
}

static zend_always_inline zend_attribute *zend_add_function_attribute(zend_function *func, zend_string *name, uint32_t argc)
{
	uint32_t flags = func->common.type != ZEND_USER_FUNCTION ? ZEND_ATTRIBUTE_PERSISTENT : 0;
	return zend_add_attribute(&func->common.attributes, name, argc, flags, 0, 0);
}

static zend_always_inline zend_attribute *zend_add_parameter_attribute(zend_function *func, uint32_t offset, zend_string *name, uint32_t argc)
{
	uint32_t flags = func->common.type != ZEND_USER_FUNCTION ? ZEND_ATTRIBUTE_PERSISTENT : 0;
	return zend_add_attribute(&func->common.attributes, name, argc, flags, offset + 1, 0);
}

static zend_always_inline zend_attribute *zend_add_property_attribute(zend_class_entry *ce, zend_property_info *info, zend_string *name, uint32_t argc)
{
	uint32_t flags = ce->type != ZEND_USER_CLASS ? ZEND_ATTRIBUTE_PERSISTENT : 0;
	return zend_add_attribute(&info->attributes, name, argc, flags, 0, 0);
}

static zend_always_inline zend_attribute *zend_add_class_constant_attribute(zend_class_entry *ce, zend_class_constant *c, zend_string *name, uint32_t argc)
{
	uint32_t flags = ce->type != ZEND_USER_CLASS ? ZEND_ATTRIBUTE_PERSISTENT : 0;
	return zend_add_attribute(&c->attributes, name, argc, flags, 0, 0);
}

static zend_always_inline zend_attribute *zend_add_global_constant_attribute(zend_constant *c, zend_string *name, uint32_t argc)
{
	uint32_t flags = ZEND_CONSTANT_MODULE_NUMBER(c) == PHP_USER_CONSTANT ? 0 : ZEND_ATTRIBUTE_PERSISTENT;
	return zend_add_attribute(&c->attributes, name, argc, flags, 0, 0);
}

void zend_register_attribute_ce(void);
void zend_attributes_shutdown(void);

#endif


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
12 Mar 2026 4.58 PM
root / linksafe
0755
Optimizer
--
31 Mar 2026 8.34 AM
root / linksafe
0755
zend.h
17.336 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_API.h
106.553 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_alloc.h
20.319 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_alloc_sizes.h
2.567 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_arena.h
5.938 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_ast.h
14.5 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_atomic.h
12.774 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_attributes.h
6.435 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_attributes_arginfo.h
15.501 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_bitset.h
7.841 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_build.h
1.588 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_builtin_functions.h
1.536 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_builtin_functions_arginfo.h
15.493 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_call_stack.h
3.068 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_closures.h
2.261 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_closures_arginfo.h
2.253 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_compile.h
53.205 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_config.h
0.031 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_constants.h
7.144 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_constants_arginfo.h
2.646 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_cpuinfo.h
9.29 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_dtrace.h
2.003 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_enum.h
2.859 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_enum_arginfo.h
1.651 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_errors.h
2.359 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_exceptions.h
4.472 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_exceptions_arginfo.h
15.427 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_execute.h
26.587 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_extensions.h
6.434 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_fibers.h
5.285 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_fibers_arginfo.h
3.447 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_float.h
15.105 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_frameless_function.h
5.389 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_gc.h
4.908 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_gdb.h
1.387 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_generators.h
7.484 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_generators_arginfo.h
2.821 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_globals.h
9.913 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_globals_macros.h
2.774 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_hash.h
51.24 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_highlight.h
2.267 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_hrtime.h
4.147 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_inheritance.h
3.129 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_ini.h
11.909 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_ini_parser.h
2.686 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_ini_scanner.h
1.932 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_ini_scanner_defs.h
0.24 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_interfaces.h
4.021 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_interfaces_arginfo.h
7.655 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_iterators.h
3.81 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_language_parser.h
6.092 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_language_scanner.h
2.999 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_language_scanner_defs.h
0.303 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_lazy_objects.h
4.661 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_list.h
3.401 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_llist.h
3.938 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_long.h
4.128 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_map_ptr.h
3.487 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_max_execution_timer.h
1.48 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_mmap.h
1.477 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_modules.h
4.713 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_multibyte.h
4.83 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_multiply.h
10.089 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_object_handlers.h
18.062 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_objects.h
2.024 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_objects_API.h
5.84 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_observer.h
8.824 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_operators.h
35.873 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_portability.h
28.122 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_property_hooks.h
1.781 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_ptr_stack.h
4.22 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_range_check.h
2.93 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_signal.h
4.009 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_simd.h
19.639 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_smart_str.h
6.88 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_smart_str_public.h
1.193 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_smart_string.h
4.23 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_smart_string_public.h
1.211 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_sort.h
1.523 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_stack.h
2.385 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_stream.h
3.556 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_string.h
22.409 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_strtod.h
2.289 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_strtod_int.h
2.807 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_system_id.h
1.391 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_type_info.h
4.438 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_types.h
51.843 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_variables.h
3.064 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_verify_type_inference.h
8.068 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_virtual_cwd.h
12.891 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_vm.h
2.063 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_vm_def.h
298.83 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_vm_execute.h
4 MB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_vm_handlers.h
90.992 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_vm_opcodes.h
15.093 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_vm_trace_handlers.h
3.141 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_vm_trace_lines.h
1.714 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_vm_trace_map.h
2.603 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_weakrefs.h
3.379 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_weakrefs_arginfo.h
3.359 KB
12 Mar 2026 4.58 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF