php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
xml_arginfo.h
Go to the documentation of this file.
1/* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: 94b232499672dfd61c2c585a5d1d8a27d1a4a7ce */
3
4ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_xml_parser_create, 0, 0, XMLParser, 0)
7
8ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_xml_parser_create_ns, 0, 0, XMLParser, 0)
10 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, separator, IS_STRING, 0, "\":\"")
12
13ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_xml_set_object, 0, 2, IS_TRUE, 0)
14 ZEND_ARG_OBJ_INFO(0, parser, XMLParser, 0)
15 ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 0)
17
18ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_xml_set_element_handler, 0, 3, IS_TRUE, 0)
19 ZEND_ARG_OBJ_INFO(0, parser, XMLParser, 0)
23
24ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_xml_set_character_data_handler, 0, 2, IS_TRUE, 0)
25 ZEND_ARG_OBJ_INFO(0, parser, XMLParser, 0)
28
29#define arginfo_xml_set_processing_instruction_handler arginfo_xml_set_character_data_handler
30
31#define arginfo_xml_set_default_handler arginfo_xml_set_character_data_handler
32
33#define arginfo_xml_set_unparsed_entity_decl_handler arginfo_xml_set_character_data_handler
34
35#define arginfo_xml_set_notation_decl_handler arginfo_xml_set_character_data_handler
36
37#define arginfo_xml_set_external_entity_ref_handler arginfo_xml_set_character_data_handler
38
39#define arginfo_xml_set_start_namespace_decl_handler arginfo_xml_set_character_data_handler
40
41#define arginfo_xml_set_end_namespace_decl_handler arginfo_xml_set_character_data_handler
42
43ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_xml_parse, 0, 2, IS_LONG, 0)
44 ZEND_ARG_OBJ_INFO(0, parser, XMLParser, 0)
46 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, is_final, _IS_BOOL, 0, "false")
48
49ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_xml_parse_into_struct, 0, 3, MAY_BE_LONG|MAY_BE_FALSE)
50 ZEND_ARG_OBJ_INFO(0, parser, XMLParser, 0)
52 ZEND_ARG_INFO(1, values)
53 ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, index, "null")
55
56ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_xml_get_error_code, 0, 1, IS_LONG, 0)
57 ZEND_ARG_OBJ_INFO(0, parser, XMLParser, 0)
59
60ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_xml_error_string, 0, 1, IS_STRING, 1)
63
64#define arginfo_xml_get_current_line_number arginfo_xml_get_error_code
65
66#define arginfo_xml_get_current_column_number arginfo_xml_get_error_code
67
68#define arginfo_xml_get_current_byte_index arginfo_xml_get_error_code
69
70ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_xml_parser_free, 0, 1, _IS_BOOL, 0)
71 ZEND_ARG_OBJ_INFO(0, parser, XMLParser, 0)
73
74ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_xml_parser_set_option, 0, 3, _IS_BOOL, 0)
75 ZEND_ARG_OBJ_INFO(0, parser, XMLParser, 0)
76 ZEND_ARG_TYPE_INFO(0, option, IS_LONG, 0)
79
81 ZEND_ARG_OBJ_INFO(0, parser, XMLParser, 0)
82 ZEND_ARG_TYPE_INFO(0, option, IS_LONG, 0)
84
107
108static const zend_function_entry ext_functions[] = {
109 ZEND_FE(xml_parser_create, arginfo_xml_parser_create)
110 ZEND_FE(xml_parser_create_ns, arginfo_xml_parser_create_ns)
111 ZEND_RAW_FENTRY("xml_set_object", zif_xml_set_object, arginfo_xml_set_object, ZEND_ACC_DEPRECATED, NULL, NULL)
112 ZEND_FE(xml_set_element_handler, arginfo_xml_set_element_handler)
113 ZEND_FE(xml_set_character_data_handler, arginfo_xml_set_character_data_handler)
121 ZEND_FE(xml_parse, arginfo_xml_parse)
122 ZEND_FE(xml_parse_into_struct, arginfo_xml_parse_into_struct)
123 ZEND_FE(xml_get_error_code, arginfo_xml_get_error_code)
124 ZEND_FE(xml_error_string, arginfo_xml_error_string)
128 ZEND_FE(xml_parser_free, arginfo_xml_parser_free)
129 ZEND_FE(xml_parser_set_option, arginfo_xml_parser_set_option)
130 ZEND_FE(xml_parser_get_option, arginfo_xml_parser_get_option)
132};
133
134static void register_xml_symbols(int module_number)
135{
152 REGISTER_LONG_CONSTANT("XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF", XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF, CONST_PERSISTENT);
157 REGISTER_LONG_CONSTANT("XML_ERROR_EXTERNAL_ENTITY_HANDLING", XML_ERROR_EXTERNAL_ENTITY_HANDLING, CONST_PERSISTENT);
164
165
166 zend_attribute *attribute_Deprecated_func_xml_set_object_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "xml_set_object", sizeof("xml_set_object") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
167 zval attribute_Deprecated_func_xml_set_object_0_arg0;
168 zend_string *attribute_Deprecated_func_xml_set_object_0_arg0_str = zend_string_init("8.4", strlen("8.4"), 1);
169 ZVAL_STR(&attribute_Deprecated_func_xml_set_object_0_arg0, attribute_Deprecated_func_xml_set_object_0_arg0_str);
170 ZVAL_COPY_VALUE(&attribute_Deprecated_func_xml_set_object_0->args[0].value, &attribute_Deprecated_func_xml_set_object_0_arg0);
171 attribute_Deprecated_func_xml_set_object_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
172 zval attribute_Deprecated_func_xml_set_object_0_arg1;
173 zend_string *attribute_Deprecated_func_xml_set_object_0_arg1_str = zend_string_init("provide a proper method callable to xml_set_*_handler() functions", strlen("provide a proper method callable to xml_set_*_handler() functions"), 1);
174 ZVAL_STR(&attribute_Deprecated_func_xml_set_object_0_arg1, attribute_Deprecated_func_xml_set_object_0_arg1_str);
175 ZVAL_COPY_VALUE(&attribute_Deprecated_func_xml_set_object_0->args[1].value, &attribute_Deprecated_func_xml_set_object_0_arg1);
176 attribute_Deprecated_func_xml_set_object_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
177}
178
179static zend_class_entry *register_class_XMLParser(void)
180{
181 zend_class_entry ce, *class_entry;
182
183 INIT_CLASS_ENTRY(ce, "XMLParser", NULL);
185
186 return class_entry;
187}
#define NULL
Definition gdcache.h:45
php_json_error_code error_code
Definition php_json.h:92
xmlCharEncodingHandlerPtr encoding
Definition php_soap.h:170
zend_constant * data
zend_attribute_arg args[1]
#define PHP_XML_SAX_IMPL
Definition php_xml.h:53
@ PHP_XML_OPTION_CASE_FOLDING
Definition php_xml.h:43
@ PHP_XML_OPTION_PARSE_HUGE
Definition php_xml.h:47
@ PHP_XML_OPTION_SKIP_WHITE
Definition php_xml.h:46
@ PHP_XML_OPTION_SKIP_TAGSTART
Definition php_xml.h:45
@ PHP_XML_OPTION_TARGET_ENCODING
Definition php_xml.h:44
const XML_ERROR_UNKNOWN_ENCODING
Definition xml.stub.php:99
const XML_ERROR_PARAM_ENTITY_REF
Definition xml.stub.php:59
const XML_ERROR_RECURSIVE_ENTITY_REF
Definition xml.stub.php:69
const XML_ERROR_MISPLACED_XML_PI
Definition xml.stub.php:94
const XML_ERROR_JUNK_AFTER_DOC_ELEMENT
Definition xml.stub.php:54
xml_get_error_code(XMLParser $parser)
Definition xml.stub.php:181
const XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF
Definition xml.stub.php:89
xml_parser_free(XMLParser $parser)
Definition xml.stub.php:192
xml_set_start_namespace_decl_handler(XMLParser $parser, callable|string|null $handler)
Definition xml.stub.php:169
xml_get_current_line_number(XMLParser $parser)
Definition xml.stub.php:186
const XML_ERROR_NO_ELEMENTS
Definition xml.stub.php:24
xml_set_external_entity_ref_handler(XMLParser $parser, callable|string|null $handler)
Definition xml.stub.php:167
xml_set_object(XMLParser $parser, object $object)
Definition xml.stub.php:153
xml_parser_create(?string $encoding=null)
Definition xml.stub.php:148
const XML_ERROR_SYNTAX
Definition xml.stub.php:19
const XML_ERROR_NONE
Definition xml.stub.php:9
const XML_ERROR_PARTIAL_CHAR
Definition xml.stub.php:39
xml_set_notation_decl_handler(XMLParser $parser, callable|string|null $handler)
Definition xml.stub.php:165
xml_parser_set_option(XMLParser $parser, int $option, $value)
Definition xml.stub.php:195
xml_set_default_handler(XMLParser $parser, callable|string|null $handler)
Definition xml.stub.php:161
const XML_ERROR_INCORRECT_ENCODING
Definition xml.stub.php:104
const XML_ERROR_ASYNC_ENTITY
Definition xml.stub.php:74
const XML_ERROR_BAD_CHAR_REF
Definition xml.stub.php:79
const XML_ERROR_EXTERNAL_ENTITY_HANDLING
Definition xml.stub.php:114
const XML_ERROR_UNCLOSED_CDATA_SECTION
Definition xml.stub.php:109
xml_set_element_handler(XMLParser $parser, callable|string|null $start_handler, callable|string|null $end_handler)
Definition xml.stub.php:155
xml_set_end_namespace_decl_handler(XMLParser $parser, callable|string|null $handler)
Definition xml.stub.php:171
xml_get_current_byte_index(XMLParser $parser)
Definition xml.stub.php:190
const XML_ERROR_INVALID_TOKEN
Definition xml.stub.php:29
xml_set_character_data_handler(XMLParser $parser, callable|string|null $handler)
Definition xml.stub.php:157
xml_set_processing_instruction_handler(XMLParser $parser, callable|string|null $handler)
Definition xml.stub.php:159
const XML_ERROR_UNDEFINED_ENTITY
Definition xml.stub.php:64
xml_parse_into_struct(XMLParser $parser, string $data, &$values, &$index=null)
Definition xml.stub.php:179
xml_parser_create_ns(?string $encoding=null, string $separator=":")
Definition xml.stub.php:150
const XML_ERROR_TAG_MISMATCH
Definition xml.stub.php:44
xml_get_current_column_number(XMLParser $parser)
Definition xml.stub.php:188
xml_parse(XMLParser $parser, string $data, bool $is_final=false)
Definition xml.stub.php:173
const XML_ERROR_UNCLOSED_TOKEN
Definition xml.stub.php:34
xml_parser_get_option(XMLParser $parser, int $option)
Definition xml.stub.php:198
const XML_ERROR_NO_MEMORY
Definition xml.stub.php:14
const XML_ERROR_DUPLICATE_ATTRIBUTE
Definition xml.stub.php:49
const XML_ERROR_BINARY_ENTITY_REF
Definition xml.stub.php:84
xml_error_string(int $error_code)
Definition xml.stub.php:184
xml_set_unparsed_entity_decl_handler(XMLParser $parser, callable|string|null $handler)
Definition xml.stub.php:163
#define arginfo_xml_set_default_handler
Definition xml_arginfo.h:31
#define arginfo_xml_set_unparsed_entity_decl_handler
Definition xml_arginfo.h:33
#define arginfo_xml_get_current_column_number
Definition xml_arginfo.h:66
#define arginfo_xml_set_notation_decl_handler
Definition xml_arginfo.h:35
#define arginfo_xml_get_current_byte_index
Definition xml_arginfo.h:68
#define arginfo_xml_set_start_namespace_decl_handler
Definition xml_arginfo.h:39
#define arginfo_xml_set_end_namespace_decl_handler
Definition xml_arginfo.h:41
#define arginfo_xml_get_current_line_number
Definition xml_arginfo.h:64
#define arginfo_xml_set_processing_instruction_handler
Definition xml_arginfo.h:29
#define arginfo_xml_set_external_entity_ref_handler
Definition xml_arginfo.h:37
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_TYPE_MASK_EX(name, return_reference, required_num_args, type)
Definition zend_API.h:185
#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_ARG_TYPE_MASK(pass_by_ref, name, type_mask, default_value)
Definition zend_API.h:146
#define ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(name, return_reference, required_num_args, class_name, allow_null)
Definition zend_API.h:172
#define ZEND_END_ARG_INFO()
Definition zend_API.h:219
#define ZEND_ARG_OBJ_INFO(pass_by_ref, name, class_name, allow_null)
Definition zend_API.h:154
#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
#define ZEND_ARG_INFO_WITH_DEFAULT_VALUE(pass_by_ref, name, default_value)
Definition zend_API.h:132
struct _zend_attribute zend_attribute
struct _zval_struct zval
strlen(string $string)
#define ZEND_ACC_NO_DYNAMIC_PROPERTIES
#define ZEND_ACC_FINAL
#define ZEND_ACC_NOT_SERIALIZABLE
#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_BOOL
#define MAY_BE_NULL
#define MAY_BE_LONG
#define MAY_BE_CALLABLE
#define IS_TRUE
Definition zend_types.h:603
#define ZVAL_STR(z, s)
#define IS_STRING
Definition zend_types.h:606
#define IS_OBJECT
Definition zend_types.h:608
#define IS_LONG
Definition zend_types.h:604
#define _IS_BOOL
Definition zend_types.h:629
#define ZVAL_COPY_VALUE(z, v)
fbc internal_function handler(call, ret)
value