xref: /php-src/ext/xml/xml.stub.php (revision 25b46965)
1<?php
2
3/** @generate-class-entries */
4
5/**
6 * @var int
7 * @cvalue XML_ERROR_NONE
8 */
9const XML_ERROR_NONE = UNKNOWN;
10/**
11 * @var int
12 * @cvalue XML_ERROR_NO_MEMORY
13 */
14const XML_ERROR_NO_MEMORY = UNKNOWN;
15/**
16 * @var int
17 * @cvalue XML_ERROR_SYNTAX
18 */
19const XML_ERROR_SYNTAX = UNKNOWN;
20/**
21 * @var int
22 * @cvalue XML_ERROR_NO_ELEMENTS
23 */
24const XML_ERROR_NO_ELEMENTS = UNKNOWN;
25/**
26 * @var int
27 * @cvalue XML_ERROR_INVALID_TOKEN
28 */
29const XML_ERROR_INVALID_TOKEN = UNKNOWN;
30/**
31 * @var int
32 * @cvalue XML_ERROR_UNCLOSED_TOKEN
33 */
34const XML_ERROR_UNCLOSED_TOKEN = UNKNOWN;
35/**
36 * @var int
37 * @cvalue XML_ERROR_PARTIAL_CHAR
38 */
39const XML_ERROR_PARTIAL_CHAR = UNKNOWN;
40/**
41 * @var int
42 * @cvalue XML_ERROR_TAG_MISMATCH
43 */
44const XML_ERROR_TAG_MISMATCH = UNKNOWN;
45/**
46 * @var int
47 * @cvalue XML_ERROR_DUPLICATE_ATTRIBUTE
48 */
49const XML_ERROR_DUPLICATE_ATTRIBUTE = UNKNOWN;
50/**
51 * @var int
52 * @cvalue XML_ERROR_JUNK_AFTER_DOC_ELEMENT
53 */
54const XML_ERROR_JUNK_AFTER_DOC_ELEMENT = UNKNOWN;
55/**
56 * @var int
57 * @cvalue XML_ERROR_PARAM_ENTITY_REF
58 */
59const XML_ERROR_PARAM_ENTITY_REF = UNKNOWN;
60/**
61 * @var int
62 * @cvalue XML_ERROR_UNDEFINED_ENTITY
63 */
64const XML_ERROR_UNDEFINED_ENTITY = UNKNOWN;
65/**
66 * @var int
67 * @cvalue XML_ERROR_RECURSIVE_ENTITY_REF
68 */
69const XML_ERROR_RECURSIVE_ENTITY_REF = UNKNOWN;
70/**
71 * @var int
72 * @cvalue XML_ERROR_ASYNC_ENTITY
73 */
74const XML_ERROR_ASYNC_ENTITY = UNKNOWN;
75/**
76 * @var int
77 * @cvalue XML_ERROR_BAD_CHAR_REF
78 */
79const XML_ERROR_BAD_CHAR_REF = UNKNOWN;
80/**
81 * @var int
82 * @cvalue XML_ERROR_BINARY_ENTITY_REF
83 */
84const XML_ERROR_BINARY_ENTITY_REF = UNKNOWN;
85/**
86 * @var int
87 * @cvalue XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF
88 */
89const XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF = UNKNOWN;
90/**
91 * @var int
92 * @cvalue XML_ERROR_MISPLACED_XML_PI
93 */
94const XML_ERROR_MISPLACED_XML_PI = UNKNOWN;
95/**
96 * @var int
97 * @cvalue XML_ERROR_UNKNOWN_ENCODING
98 */
99const XML_ERROR_UNKNOWN_ENCODING = UNKNOWN;
100/**
101 * @var int
102 * @cvalue XML_ERROR_INCORRECT_ENCODING
103 */
104const XML_ERROR_INCORRECT_ENCODING = UNKNOWN;
105/**
106 * @var int
107 * @cvalue XML_ERROR_UNCLOSED_CDATA_SECTION
108 */
109const XML_ERROR_UNCLOSED_CDATA_SECTION = UNKNOWN;
110/**
111 * @var int
112 * @cvalue XML_ERROR_EXTERNAL_ENTITY_HANDLING
113 */
114const XML_ERROR_EXTERNAL_ENTITY_HANDLING = UNKNOWN;
115
116/**
117 * @var int
118 * @cvalue PHP_XML_OPTION_CASE_FOLDING
119 */
120const XML_OPTION_CASE_FOLDING = UNKNOWN;
121/**
122 * @var int
123 * @cvalue PHP_XML_OPTION_TARGET_ENCODING
124 */
125const XML_OPTION_TARGET_ENCODING = UNKNOWN;
126/**
127 * @var int
128 * @cvalue PHP_XML_OPTION_SKIP_TAGSTART
129 */
130const XML_OPTION_SKIP_TAGSTART = UNKNOWN;
131/**
132 * @var int
133 * @cvalue PHP_XML_OPTION_SKIP_WHITE
134 */
135const XML_OPTION_SKIP_WHITE = UNKNOWN;
136/**
137 * @var int
138 * @cvalue PHP_XML_OPTION_PARSE_HUGE
139 */
140const XML_OPTION_PARSE_HUGE = UNKNOWN;
141
142/**
143 * @var string
144 * @cvalue PHP_XML_SAX_IMPL
145 */
146const XML_SAX_IMPL = UNKNOWN;
147
148function xml_parser_create(?string $encoding = null): XMLParser {}
149
150function xml_parser_create_ns(?string $encoding = null, string $separator = ":"): XMLParser {}
151
152#[\Deprecated(since: '8.4', message: 'provide a proper method callable to xml_set_*_handler() functions')]
153function xml_set_object(XMLParser $parser, object $object): true {}
154
155function xml_set_element_handler(XMLParser $parser, callable|string|null $start_handler, callable|string|null $end_handler): true {}
156
157function xml_set_character_data_handler(XMLParser $parser, callable|string|null $handler): true {}
158
159function xml_set_processing_instruction_handler(XMLParser $parser, callable|string|null $handler): true {}
160
161function xml_set_default_handler(XMLParser $parser, callable|string|null $handler): true {}
162
163function xml_set_unparsed_entity_decl_handler(XMLParser $parser, callable|string|null $handler): true {}
164
165function xml_set_notation_decl_handler(XMLParser $parser, callable|string|null $handler): true {}
166
167function xml_set_external_entity_ref_handler(XMLParser $parser, callable|string|null $handler): true {}
168
169function xml_set_start_namespace_decl_handler(XMLParser $parser, callable|string|null $handler): true {}
170
171function xml_set_end_namespace_decl_handler(XMLParser $parser, callable|string|null $handler): true {}
172
173function xml_parse(XMLParser $parser, string $data, bool $is_final = false): int {}
174
175/**
176 * @param array $values
177 * @param array $index
178 */
179function xml_parse_into_struct(XMLParser $parser, string $data, &$values, &$index = null): int|false {}
180
181function xml_get_error_code(XMLParser $parser): int {}
182
183/** @refcount 1 */
184function xml_error_string(int $error_code): ?string {}
185
186function xml_get_current_line_number(XMLParser $parser): int {}
187
188function xml_get_current_column_number(XMLParser $parser): int {}
189
190function xml_get_current_byte_index(XMLParser $parser): int {}
191
192function xml_parser_free(XMLParser $parser): bool {}
193
194/** @param string|int|bool $value */
195function xml_parser_set_option(XMLParser $parser, int $option, $value): bool {}
196
197/** @refcount 1 */
198function xml_parser_get_option(XMLParser $parser, int $option): string|int|bool {}
199
200/**
201 * @strict-properties
202 * @not-serializable
203 */
204final class XMLParser
205{
206}
207