* the severity of the error (one of the following constants:
* LIBXML_ERR_WARNING
,
* LIBXML_ERR_ERROR
or
* LIBXML_ERR_FATAL
)
*
* The error's code. *
* @var int */ public int $code; /** ** The column where the error occurred. *
*Note: *
* This property isn't entirely implemented in libxml and therefore * 0 is often returned. *
* @var int */ public int $column; /** ** The error message, if any. *
* @var string */ public string $message; /** *The filename, or empty if the XML was loaded from a string.
* @var string */ public string $file; /** ** The line where the error occurred. *
* @var int */ public int $line; } /** * Set the streams context for the next libxml document load or write * @link https://php.net/manual/en/function.libxml-set-streams-context.php * @param resource $context* The stream context resource (created with * stream_context_create) *
* @return void No value is returned. */ function libxml_set_streams_context($context): void {} /** * Disable libxml errors and allow user to fetch error information as needed * @link https://php.net/manual/en/function.libxml-use-internal-errors.php * @param bool|null $use_errors* Enable (TRUE) user error handling or disable (FALSE) user error handling. Disabling will also clear any existing libxml errors. *
* @return bool This function returns the previous value of * use_errors. */ function libxml_use_internal_errors( #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] bool $use_errors = false, #[PhpStormStubsElementAvailable(from: '8.0')] ?bool $use_errors = null ): bool {} /** * Retrieve last error from libxml * @link https://php.net/manual/en/function.libxml-get-last-error.php * @return LibXMLError|false a LibXMLError object if there is any error in the * buffer, FALSE otherwise. */ #[Pure(true)] function libxml_get_last_error(): LibXMLError|false {} /** * Clear libxml error buffer * @link https://php.net/manual/en/function.libxml-clear-errors.php * @return void No value is returned. */ function libxml_clear_errors(): void {} /** * Retrieve array of errors * @link https://php.net/manual/en/function.libxml-get-errors.php * @return LibXMLError[] an array with LibXMLError objects if there are any * errors in the buffer, or an empty array otherwise. */ #[Pure(true)] function libxml_get_errors(): array {} /** * Disable the ability to load external entities * @link https://php.net/manual/en/function.libxml-disable-entity-loader.php * @param bool $disable [optional]* Disable (TRUE) or enable (FALSE) libxml extensions (such as * , * and ) to load external entities. *
* @return bool the previous value. * @since 5.2.11 */ #[Deprecated(since: "8.0")] function libxml_disable_entity_loader(bool $disable = true): bool {} /** * Changes the default external entity loader * @link https://php.net/manual/en/function.libxml-set-external-entity-loader.php * @param callable|null $resolver_function* A callable that takes three arguments. Two strings, a public id * and system id, and a context (an array with four keys) as the third argument. * This callback should return a resource, a string from which a resource can be * opened, or NULL. *
* @return bool * @since 5.4 */ function libxml_set_external_entity_loader(?callable $resolver_function): bool {} /** * Returns the currently installed external entity loader, i.e. the value which was passed to * libxml_set_external_entity_loader() or null if no loader was installed and the default entity loader will be used. * This allows libraries to save and restore the loader, controlling entity expansion without interfering with the rest * of the application. * * @return callable|null * @since 8.2 */ function libxml_get_external_entity_loader(): ?callable {} /** * libxml version like 20605 or 20617 * @link https://php.net/manual/en/libxml.constants.php */ define('LIBXML_VERSION', 20901); /** * libxml version like 2.6.5 or 2.6.17 * @link https://php.net/manual/en/libxml.constants.php */ define('LIBXML_DOTTED_VERSION', "2.9.1"); define('LIBXML_LOADED_VERSION', 20901); /** * Substitute entities * @link https://php.net/manual/en/libxml.constants.php */ define('LIBXML_NOENT', 2); /** * Load the external subset * @link https://php.net/manual/en/libxml.constants.php */ define('LIBXML_DTDLOAD', 4); /** * Default DTD attributes * @link https://php.net/manual/en/libxml.constants.php */ define('LIBXML_DTDATTR', 8); /** * Validate with the DTD * @link https://php.net/manual/en/libxml.constants.php */ define('LIBXML_DTDVALID', 16); /** * Suppress error reports * @link https://php.net/manual/en/libxml.constants.php */ define('LIBXML_NOERROR', 32); /** * Suppress warning reports * @link https://php.net/manual/en/libxml.constants.php */ define('LIBXML_NOWARNING', 64); /** * Remove blank nodes * @link https://php.net/manual/en/libxml.constants.php */ define('LIBXML_NOBLANKS', 256); /** * Implement XInclude substitution * @link https://php.net/manual/en/libxml.constants.php */ define('LIBXML_XINCLUDE', 1024); /** * Remove redundant namespaces declarations * @link https://php.net/manual/en/libxml.constants.php */ define('LIBXML_NSCLEAN', 8192); /** * Merge CDATA as text nodes * @link https://php.net/manual/en/libxml.constants.php */ define('LIBXML_NOCDATA', 16384); /** * Disable network access when loading documents * @link https://php.net/manual/en/libxml.constants.php */ define('LIBXML_NONET', 2048); /** * Sets XML_PARSE_PEDANTIC flag, which enables pedentic error reporting. * @link https://php.net/manual/en/libxml.constants.php * @since 5.4 */ define('LIBXML_PEDANTIC', 128); /** * Activate small nodes allocation optimization. This may speed up your * application without needing to change the code. ** Only available in Libxml >= 2.6.21 *
* @link https://php.net/manual/en/libxml.constants.php */ define('LIBXML_COMPACT', 65536); /** * Allows line numbers greater than 65535 to be reported correctly. ** Only available in Libxml >= 2.9.0 *
* @link https://php.net/manual/en/libxml.constants.php */ define('LIBXML_BIGLINES', 65535); /** * Drop the XML declaration when saving a document ** Only available in Libxml >= 2.6.21 *
* @link https://php.net/manual/en/libxml.constants.php */ define('LIBXML_NOXMLDECL', 2); /** * Sets XML_PARSE_HUGE flag, which relaxes any hardcoded limit from the parser. This affects * limits like maximum depth of a document or the entity recursion, as well as limits of the * size of text nodes. ** Only available in Libxml >= 2.7.0 (as of PHP >= 5.3.2 and PHP >= 5.2.12) *
* @link https://php.net/manual/en/libxml.constants.php */ define('LIBXML_PARSEHUGE', 524288); /** * Expand empty tags (e.g. <br/> to * <br></br>) ** This option is currently just available in the * and * functions. *
* @link https://php.net/manual/en/libxml.constants.php */ define('LIBXML_NOEMPTYTAG', 4); /** * Create default/fixed value nodes during XSD schema validation ** Only available in Libxml >= 2.6.14 (as of PHP >= 5.5.2) *
* @link https://php.net/manual/en/libxml.constants.php */ define('LIBXML_SCHEMA_CREATE', 1); /** * Sets HTML_PARSE_NOIMPLIED flag, which turns off the * automatic adding of implied html/body... elements. ** Only available in Libxml >= 2.7.7 (as of PHP >= 5.4.0) *
* @link https://php.net/manual/en/libxml.constants.php */ define('LIBXML_HTML_NOIMPLIED', 8192); /** * Sets HTML_PARSE_NODEFDTD flag, which prevents a default doctype * being added when one is not found. ** Only available in Libxml >= 2.7.8 (as of PHP >= 5.4.0) *
* @link https://php.net/manual/en/libxml.constants.php */ define('LIBXML_HTML_NODEFDTD', 4); /** * No errors * @link https://php.net/manual/en/libxml.constants.php */ define('LIBXML_ERR_NONE', 0); /** * A simple warning * @link https://php.net/manual/en/libxml.constants.php */ define('LIBXML_ERR_WARNING', 1); /** * A recoverable error * @link https://php.net/manual/en/libxml.constants.php */ define('LIBXML_ERR_ERROR', 2); /** * A fatal error * @link https://php.net/manual/en/libxml.constants.php */ define('LIBXML_ERR_FATAL', 3); // End of libxml v.