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 137function xml_parser_create(?string $encoding = null): XMLParser {} 138 139function xml_parser_create_ns(?string $encoding = null, string $separator = ":"): XMLParser {} 140 141function xml_set_object(XMLParser $parser, object $object): true {} 142 143/** 144 * @param callable $start_handler 145 * @param callable $end_handler 146 */ 147function xml_set_element_handler(XMLParser $parser, $start_handler, $end_handler): true {} 148 149/** @param callable $handler */ 150function xml_set_character_data_handler(XMLParser $parser, $handler): true {} 151 152/** @param callable $handler */ 153function xml_set_processing_instruction_handler(XMLParser $parser, $handler): true {} 154 155/** @param callable $handler */ 156function xml_set_default_handler(XMLParser $parser, $handler): true {} 157 158/** @param callable $handler */ 159function xml_set_unparsed_entity_decl_handler(XMLParser $parser, $handler): true {} 160 161/** @param callable $handler */ 162function xml_set_notation_decl_handler(XMLParser $parser, $handler): true {} 163 164/** @param callable $handler */ 165function xml_set_external_entity_ref_handler(XMLParser $parser, $handler): true {} 166 167/** @param callable $handler */ 168function xml_set_start_namespace_decl_handler(XMLParser $parser, $handler): true {} 169 170/** @param callable $handler */ 171function xml_set_end_namespace_decl_handler(XMLParser $parser, $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 $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 {} 199 200/** 201 * @strict-properties 202 * @not-serializable 203 */ 204final class XMLParser 205{ 206} 207