libxml_disable_entity_loader
(PHP 5 >= 5.2.11, PHP 7)
libxml_disable_entity_loader — Disable the ability to load external entities
Description
libxml_disable_entity_loader ([ bool $disable = true ] ) : bool
Disable/enable the ability to load external entities. Note that disabling the loading of external entities may cause general issues with loading XML documents. However, as of libxml 2.9.0 entity substitution is disabled by default, so there is no need to disable the loading of external entities.
Parameters
Return Values
Returns the previous value.
See Also
- libxml_use_internal_errors() - Disable libxml errors and allow user to fetch error information as needed
- The
LIBXML_NONET
constant
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.libxml-disable-entity-loader.php