array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'function.libxml-disable-entity-loader.php', 1 => 'libxml_disable_entity_loader', 2 => 'Disable the ability to load external entities', ), 'up' => array ( 0 => 'ref.libxml.php', 1 => 'Функції libxml', ), 'prev' => array ( 0 => 'function.libxml-clear-errors.php', 1 => 'libxml_clear_errors', ), 'next' => array ( 0 => 'function.libxml-get-errors.php', 1 => 'libxml_get_errors', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/libxml/functions/libxml-disable-entity-loader.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PHP 5 >= 5.2.11, PHP 7, PHP 8)
libxml_disable_entity_loader — Disable the ability to load external entities
Ця функція ЗАСТАРІЛА, починаючи з PHP 8.0.0. Вкрай не рекомендується на неї покладатися.
Disable/enable the ability to load external entities. Note that disabling the loading of external entities may cause general issues with loading XML documents.
As of libxml 2.9.0 entity substitution
is disabled by default, so there is no need to disable the loading of external
entities,
unless there is the need to resolve internal entity references with LIBXML_NOENT
,
LIBXML_DTDVALID
, or LIBXML_DTDLOAD
.
Generally, it is preferable to use libxml_set_external_entity_loader()
to suppress loading of external entities.
The LIBXML_NO_XXE
constant can be used to prevent this as well (only available in Libxml >= 2.13.0, as of PHP 8.4.0).
Returns the previous value.
Версія | Опис |
---|---|
8.0.0 | This function has been deprecated. |
LIBXML_NOENT
constantLIBXML_DTDVALID
constantLIBXML_NO_XXE
constant