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