libxml_disable_entity_loader
避免加载外部实体字符。
http://php.net/manual/en/function.libxml-disable-entity-loader.php
libxml_disable_entity_loader — Disable the ability to load external entities
bool libxml_disable_entity_loader ([ bool
$disable
= true ] )Disable/enable the ability to load external entities.
Returns the previous value.
- libxml_use_internal_errors() - Disable libxml errors and allow user to fetch error information as needed
- The
LIBXML_NONET
constant