libxml_disable_entity_loader

时间:2023-03-09 03:50:59
libxml_disable_entity_loader

w避免加载外部实体字符。

http://php.net/manual/en/function.libxml-disable-entity-loader.php

libxml_disable_entity_loader — Disable the ability to load external entities

Description

bool libxml_disable_entity_loader ([ bool $disable = true ] )

Disable/enable the ability to load external entities.

Parameters

disable

Disable (TRUE) or enable (FALSE) libxml extensions (such as DOMXMLWriter and XMLReader) to load external entities.

Return Values

Returns the previous value.

See Also