php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
libxml_arginfo.h
Go to the documentation of this file.
1/* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: e0d2498c10cba72adb97504fd13e178e090de2cd */
3
4ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_libxml_set_streams_context, 0, 1, IS_VOID, 0)
7
8ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_libxml_use_internal_errors, 0, 0, _IS_BOOL, 0)
9 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, use_errors, _IS_BOOL, 1, "null")
11
12ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_libxml_get_last_error, 0, 0, LibXMLError, MAY_BE_FALSE)
14
15ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_libxml_get_errors, 0, 0, IS_ARRAY, 0)
17
18ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_libxml_clear_errors, 0, 0, IS_VOID, 0)
20
21ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_libxml_disable_entity_loader, 0, 0, _IS_BOOL, 0)
24
25ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_libxml_set_external_entity_loader, 0, 1, _IS_BOOL, 0)
26 ZEND_ARG_TYPE_INFO(0, resolver_function, IS_CALLABLE, 1)
28
29ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_libxml_get_external_entity_loader, 0, 0, IS_CALLABLE, 1)
31
40
41static const zend_function_entry ext_functions[] = {
42 ZEND_FE(libxml_set_streams_context, arginfo_libxml_set_streams_context)
43 ZEND_FE(libxml_use_internal_errors, arginfo_libxml_use_internal_errors)
44 ZEND_FE(libxml_get_last_error, arginfo_libxml_get_last_error)
45 ZEND_FE(libxml_get_errors, arginfo_libxml_get_errors)
46 ZEND_FE(libxml_clear_errors, arginfo_libxml_clear_errors)
47 ZEND_RAW_FENTRY("libxml_disable_entity_loader", zif_libxml_disable_entity_loader, arginfo_libxml_disable_entity_loader, ZEND_ACC_DEPRECATED, NULL, NULL)
48 ZEND_FE(libxml_set_external_entity_loader, arginfo_libxml_set_external_entity_loader)
49 ZEND_FE(libxml_get_external_entity_loader, arginfo_libxml_get_external_entity_loader)
51};
52
53static void register_libxml_symbols(int module_number)
54{
57 REGISTER_STRING_CONSTANT("LIBXML_LOADED_VERSION", PHP_LIBXML_LOADED_VERSION, CONST_PERSISTENT);
58 REGISTER_LONG_CONSTANT("LIBXML_RECOVER", XML_PARSE_RECOVER, CONST_PERSISTENT);
59 REGISTER_LONG_CONSTANT("LIBXML_NOENT", XML_PARSE_NOENT, CONST_PERSISTENT);
60#if LIBXML_VERSION >= 21300
61 REGISTER_LONG_CONSTANT("LIBXML_NO_XXE", XML_PARSE_NO_XXE, CONST_PERSISTENT);
62#endif
63 REGISTER_LONG_CONSTANT("LIBXML_DTDLOAD", XML_PARSE_DTDLOAD, CONST_PERSISTENT);
64 REGISTER_LONG_CONSTANT("LIBXML_DTDATTR", XML_PARSE_DTDATTR, CONST_PERSISTENT);
65 REGISTER_LONG_CONSTANT("LIBXML_DTDVALID", XML_PARSE_DTDVALID, CONST_PERSISTENT);
66 REGISTER_LONG_CONSTANT("LIBXML_NOERROR", XML_PARSE_NOERROR, CONST_PERSISTENT);
67 REGISTER_LONG_CONSTANT("LIBXML_NOWARNING", XML_PARSE_NOWARNING, CONST_PERSISTENT);
68 REGISTER_LONG_CONSTANT("LIBXML_NOBLANKS", XML_PARSE_NOBLANKS, CONST_PERSISTENT);
69 REGISTER_LONG_CONSTANT("LIBXML_XINCLUDE", XML_PARSE_XINCLUDE, CONST_PERSISTENT);
70 REGISTER_LONG_CONSTANT("LIBXML_NSCLEAN", XML_PARSE_NSCLEAN, CONST_PERSISTENT);
71 REGISTER_LONG_CONSTANT("LIBXML_NOCDATA", XML_PARSE_NOCDATA, CONST_PERSISTENT);
72 REGISTER_LONG_CONSTANT("LIBXML_NONET", XML_PARSE_NONET, CONST_PERSISTENT);
73 REGISTER_LONG_CONSTANT("LIBXML_PEDANTIC", XML_PARSE_PEDANTIC, CONST_PERSISTENT);
74 REGISTER_LONG_CONSTANT("LIBXML_COMPACT", XML_PARSE_COMPACT, CONST_PERSISTENT);
75 REGISTER_LONG_CONSTANT("LIBXML_NOXMLDECL", XML_SAVE_NO_DECL, CONST_PERSISTENT);
76 REGISTER_LONG_CONSTANT("LIBXML_PARSEHUGE", XML_PARSE_HUGE, CONST_PERSISTENT);
77 REGISTER_LONG_CONSTANT("LIBXML_BIGLINES", XML_PARSE_BIG_LINES, CONST_PERSISTENT);
78 REGISTER_LONG_CONSTANT("LIBXML_NOEMPTYTAG", LIBXML_SAVE_NOEMPTYTAG, CONST_PERSISTENT);
79#if defined(LIBXML_SCHEMAS_ENABLED)
80 REGISTER_LONG_CONSTANT("LIBXML_SCHEMA_CREATE", XML_SCHEMA_VAL_VC_I_CREATE, CONST_PERSISTENT);
81#endif
82 REGISTER_LONG_CONSTANT("LIBXML_HTML_NOIMPLIED", HTML_PARSE_NOIMPLIED, CONST_PERSISTENT);
83 REGISTER_LONG_CONSTANT("LIBXML_HTML_NODEFDTD", HTML_PARSE_NODEFDTD, CONST_PERSISTENT);
84 REGISTER_LONG_CONSTANT("LIBXML_ERR_NONE", XML_ERR_NONE, CONST_PERSISTENT);
85 REGISTER_LONG_CONSTANT("LIBXML_ERR_WARNING", XML_ERR_WARNING, CONST_PERSISTENT);
86 REGISTER_LONG_CONSTANT("LIBXML_ERR_ERROR", XML_ERR_ERROR, CONST_PERSISTENT);
87 REGISTER_LONG_CONSTANT("LIBXML_ERR_FATAL", XML_ERR_FATAL, CONST_PERSISTENT);
88
89
90 zend_attribute *attribute_Deprecated_func_libxml_disable_entity_loader_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "libxml_disable_entity_loader", sizeof("libxml_disable_entity_loader") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
91 zval attribute_Deprecated_func_libxml_disable_entity_loader_0_arg0;
92 zend_string *attribute_Deprecated_func_libxml_disable_entity_loader_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
93 ZVAL_STR(&attribute_Deprecated_func_libxml_disable_entity_loader_0_arg0, attribute_Deprecated_func_libxml_disable_entity_loader_0_arg0_str);
94 ZVAL_COPY_VALUE(&attribute_Deprecated_func_libxml_disable_entity_loader_0->args[0].value, &attribute_Deprecated_func_libxml_disable_entity_loader_0_arg0);
95 attribute_Deprecated_func_libxml_disable_entity_loader_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
96 zval attribute_Deprecated_func_libxml_disable_entity_loader_0_arg1;
97 zend_string *attribute_Deprecated_func_libxml_disable_entity_loader_0_arg1_str = zend_string_init("as external entity loading is disabled by default", strlen("as external entity loading is disabled by default"), 1);
98 ZVAL_STR(&attribute_Deprecated_func_libxml_disable_entity_loader_0_arg1, attribute_Deprecated_func_libxml_disable_entity_loader_0_arg1_str);
99 ZVAL_COPY_VALUE(&attribute_Deprecated_func_libxml_disable_entity_loader_0->args[1].value, &attribute_Deprecated_func_libxml_disable_entity_loader_0_arg1);
100 attribute_Deprecated_func_libxml_disable_entity_loader_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
101}
102
103static zend_class_entry *register_class_LibXMLError(void)
104{
105 zend_class_entry ce, *class_entry;
106
107 INIT_CLASS_ENTRY(ce, "LibXMLError", NULL);
108 class_entry = zend_register_internal_class_with_flags(&ce, NULL, 0);
109
110 zval property_level_default_value;
111 ZVAL_UNDEF(&property_level_default_value);
112 zend_string *property_level_name = zend_string_init("level", sizeof("level") - 1, 1);
113 zend_declare_typed_property(class_entry, property_level_name, &property_level_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
114 zend_string_release(property_level_name);
115
116 zval property_code_default_value;
117 ZVAL_UNDEF(&property_code_default_value);
118 zend_string *property_code_name = zend_string_init("code", sizeof("code") - 1, 1);
119 zend_declare_typed_property(class_entry, property_code_name, &property_code_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
120 zend_string_release(property_code_name);
121
122 zval property_column_default_value;
123 ZVAL_UNDEF(&property_column_default_value);
124 zend_string *property_column_name = zend_string_init("column", sizeof("column") - 1, 1);
125 zend_declare_typed_property(class_entry, property_column_name, &property_column_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
126 zend_string_release(property_column_name);
127
128 zval property_message_default_value;
129 ZVAL_UNDEF(&property_message_default_value);
130 zend_string *property_message_name = zend_string_init("message", sizeof("message") - 1, 1);
131 zend_declare_typed_property(class_entry, property_message_name, &property_message_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
132 zend_string_release(property_message_name);
133
134 zval property_file_default_value;
135 ZVAL_UNDEF(&property_file_default_value);
136 zend_string *property_file_name = zend_string_init("file", sizeof("file") - 1, 1);
137 zend_declare_typed_property(class_entry, property_file_name, &property_file_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
138 zend_string_release(property_file_name);
139
140 zval property_line_default_value;
141 ZVAL_UNDEF(&property_line_default_value);
142 zend_string *property_line_name = zend_string_init("line", sizeof("line") - 1, 1);
143 zend_declare_typed_property(class_entry, property_line_name, &property_line_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
144 zend_string_release(property_line_name);
145
146 return class_entry;
147}
#define NULL
Definition gdcache.h:45
libxml_use_internal_errors(?bool $use_errors=null)
libxml_get_external_entity_loader()
libxml_disable_entity_loader(bool $disable=true)
libxml_set_streams_context($context)
libxml_set_external_entity_loader(?callable $resolver_function)
libxml_get_last_error()
libxml_get_errors()
libxml_clear_errors()
const LIBXML_DOTTED_VERSION
const LIBXML_VERSION
zend_attribute_arg args[1]
Definition dce.c:49
ZEND_API zend_property_info * zend_declare_typed_property(zend_class_entry *ce, zend_string *name, zval *property, int access_type, zend_string *doc_comment, zend_type type)
Definition zend_API.c:4505
ZEND_API zend_class_entry * zend_register_internal_class_with_flags(zend_class_entry *class_entry, zend_class_entry *parent_ce, uint32_t ce_flags)
Definition zend_API.c:3512
#define ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(name, return_reference, required_num_args, class_name, type)
Definition zend_API.h:195
#define ZEND_FE_END
Definition zend_API.h:124
struct _zend_function_entry zend_function_entry
#define ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(name, return_reference, required_num_args, type, allow_null)
Definition zend_API.h:205
#define INIT_CLASS_ENTRY(class_container, class_name, functions)
Definition zend_API.h:279
#define ZEND_RAW_FENTRY(zend_name, name, arg_info, flags, frameless_function_infos, doc_comment)
Definition zend_API.h:80
#define ZEND_ARG_INFO(pass_by_ref, name)
Definition zend_API.h:130
#define ZEND_END_ARG_INFO()
Definition zend_API.h:219
#define ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(pass_by_ref, name, type_hint, allow_null, default_value)
Definition zend_API.h:140
#define ZEND_ARG_TYPE_INFO(pass_by_ref, name, type_hint, allow_null)
Definition zend_API.h:138
#define ZEND_FE(name, arg_info)
Definition zend_API.h:86
#define ZEND_FUNCTION(name)
Definition zend_API.h:75
struct _zend_attribute zend_attribute
struct _zval_struct zval
strlen(string $string)
#define ZEND_ACC_PUBLIC
#define ZEND_ACC_DEPRECATED
#define REGISTER_STRING_CONSTANT(name, str, flags)
#define CONST_PERSISTENT
#define REGISTER_LONG_CONSTANT(name, lval, flags)
#define CG(v)
struct _zend_string zend_string
struct _zend_class_entry zend_class_entry
#define ZSTR_KNOWN(idx)
#define MAY_BE_STRING
#define MAY_BE_FALSE
#define MAY_BE_LONG
#define ZVAL_STR(z, s)
#define ZVAL_UNDEF(z)
#define ZEND_TYPE_INIT_MASK(_type_mask)
Definition zend_types.h:283
#define IS_ARRAY
Definition zend_types.h:607
#define IS_VOID
Definition zend_types.h:617
#define _IS_BOOL
Definition zend_types.h:629
#define IS_CALLABLE
Definition zend_types.h:615
#define ZVAL_COPY_VALUE(z, v)