1<?php 2 3/** @generate-class-entries */ 4 5/** 6 * @var int 7 * @cvalue LIBXML_VERSION 8 */ 9const LIBXML_VERSION = UNKNOWN; 10/** 11 * @var string 12 * @cvalue LIBXML_DOTTED_VERSION 13 */ 14const LIBXML_DOTTED_VERSION = UNKNOWN; 15/** 16 * @var string 17 * @cvalue PHP_LIBXML_LOADED_VERSION 18 */ 19const LIBXML_LOADED_VERSION = UNKNOWN; 20 21/** 22 * @var int 23 * @cvalue XML_PARSE_RECOVER 24 */ 25const LIBXML_RECOVER = UNKNOWN; 26/** 27 * @var int 28 * @cvalue XML_PARSE_NOENT 29 */ 30const LIBXML_NOENT = UNKNOWN; 31#if LIBXML_VERSION >= 21300 32/** 33 * @var int 34 * @cvalue XML_PARSE_NO_XXE 35 */ 36const LIBXML_NO_XXE = UNKNOWN; 37#endif 38/** 39 * @var int 40 * @cvalue XML_PARSE_DTDLOAD 41 */ 42const LIBXML_DTDLOAD = UNKNOWN; 43/** 44 * @var int 45 * @cvalue XML_PARSE_DTDATTR 46 */ 47const LIBXML_DTDATTR = UNKNOWN; 48/** 49 * @var int 50 * @cvalue XML_PARSE_DTDVALID 51 */ 52const LIBXML_DTDVALID = UNKNOWN; 53/** 54 * @var int 55 * @cvalue XML_PARSE_NOERROR 56 */ 57const LIBXML_NOERROR = UNKNOWN; 58/** 59 * @var int 60 * @cvalue XML_PARSE_NOWARNING 61 */ 62const LIBXML_NOWARNING = UNKNOWN; 63/** 64 * @var int 65 * @cvalue XML_PARSE_NOBLANKS 66 */ 67const LIBXML_NOBLANKS = UNKNOWN; 68/** 69 * @var int 70 * @cvalue XML_PARSE_XINCLUDE 71 */ 72const LIBXML_XINCLUDE = UNKNOWN; 73/** 74 * @var int 75 * @cvalue XML_PARSE_NSCLEAN 76 */ 77const LIBXML_NSCLEAN = UNKNOWN; 78/** 79 * @var int 80 * @cvalue XML_PARSE_NOCDATA 81 */ 82const LIBXML_NOCDATA = UNKNOWN; 83/** 84 * @var int 85 * @cvalue XML_PARSE_NONET 86 */ 87const LIBXML_NONET = UNKNOWN; 88/** 89 * @var int 90 * @cvalue XML_PARSE_PEDANTIC 91 */ 92const LIBXML_PEDANTIC = UNKNOWN; 93/** 94 * @var int 95 * @cvalue XML_PARSE_COMPACT 96 */ 97const LIBXML_COMPACT = UNKNOWN; 98/** 99 * @var int 100 * @cvalue XML_SAVE_NO_DECL 101 */ 102const LIBXML_NOXMLDECL = UNKNOWN; 103/** 104 * @var int 105 * @cvalue XML_PARSE_HUGE 106 */ 107const LIBXML_PARSEHUGE = UNKNOWN; 108/** 109 * @var int 110 * @cvalue XML_PARSE_BIG_LINES 111 */ 112const LIBXML_BIGLINES = UNKNOWN; 113/** 114 * @var int 115 * @cvalue LIBXML_SAVE_NOEMPTYTAG 116 */ 117const LIBXML_NOEMPTYTAG = UNKNOWN; 118 119#ifdef LIBXML_SCHEMAS_ENABLED 120/** 121 * @var int 122 * @cvalue XML_SCHEMA_VAL_VC_I_CREATE 123 */ 124const LIBXML_SCHEMA_CREATE = UNKNOWN; 125#endif 126 127/** 128 * @var int 129 * @cvalue HTML_PARSE_NOIMPLIED 130 */ 131const LIBXML_HTML_NOIMPLIED = UNKNOWN; 132 133/** 134 * @var int 135 * @cvalue HTML_PARSE_NODEFDTD 136 */ 137const LIBXML_HTML_NODEFDTD = UNKNOWN; 138 139/** 140 * @var int 141 * @cvalue XML_ERR_NONE 142 */ 143const LIBXML_ERR_NONE = UNKNOWN; 144/** 145 * @var int 146 * @cvalue XML_ERR_WARNING 147 */ 148const LIBXML_ERR_WARNING = UNKNOWN; 149/** 150 * @var int 151 * @cvalue XML_ERR_ERROR 152 */ 153const LIBXML_ERR_ERROR = UNKNOWN; 154/** 155 * @var int 156 * @cvalue XML_ERR_FATAL 157 */ 158const LIBXML_ERR_FATAL = UNKNOWN; 159 160class LibXMLError 161{ 162 public int $level; 163 public int $code; 164 public int $column; 165 public string $message; 166 public string $file; 167 public int $line; 168} 169 170/** @param resource $context */ 171function libxml_set_streams_context($context): void {} 172 173function libxml_use_internal_errors(?bool $use_errors = null): bool {} 174 175function libxml_get_last_error(): LibXMLError|false {} 176 177/** @return array<int, LibXMLError> */ 178function libxml_get_errors(): array {} 179 180function libxml_clear_errors(): void {} 181 182#[\Deprecated(since: '8.0', message: 'as external entity loading is disabled by default')] 183function libxml_disable_entity_loader(bool $disable = true): bool {} 184 185function libxml_set_external_entity_loader(?callable $resolver_function): bool {} 186 187function libxml_get_external_entity_loader(): ?callable {} 188