<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.libxml.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ru',
  ),
  'this' => 
  array (
    0 => 'function.libxml-disable-entity-loader.php',
    1 => 'libxml_disable_entity_loader',
    2 => 'Отключает возможность загрузки сущностей из внешних источников',
  ),
  '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' => 'ru',
    '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);

?>
<div id="function.libxml-disable-entity-loader" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">libxml_disable_entity_loader</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.2.11, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">libxml_disable_entity_loader</span> &mdash; <span class="dc-title">
   Отключает возможность загрузки сущностей из внешних источников
  </span></p>

 </div>

 <div id="function.libxml-disable-entity-loader-refsynopsisdiv">
   
<div class="warning"><strong class="warning">Внимание</strong>
 <p class="simpara">
  Начиная с PHP 8.0.0 функция <em>УСТАРЕЛА</em>.
  Полагаться на функцию настоятельно не рекомендуют.
 </p>
</div>
 </div>

 <div class="refsect1 description" id="refsect1-function.libxml-disable-entity-loader-description">
  <h3 class="title">Описание</h3>
  <div class="methodsynopsis dc-description">
   <span class="attribute"><a href="class.deprecated.php">#[\Deprecated]</a> </span><br>
   <span class="methodname"><strong>libxml_disable_entity_loader</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$disable</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Функция отключает или включает возможность загрузки внешних сущностей.
   Обратите внимание, что отключение загрузки внешних сущностей иногда вызывает общие проблемы
   с загрузкой XML-документов.
  </p>
  <p class="para">
   С libxml 2.9.0 подстановку сущностей отключили по умолчанию,
   поэтому не обязательно отключать загрузку внешних сущностей,
   если не требуется разрешать ссылки на внутренние сущности через константу <strong><code><a href="libxml.constants.php#constant.libxml-noent">LIBXML_NOENT</a></code></strong>,
   <strong><code><a href="libxml.constants.php#constant.libxml-dtdvalid">LIBXML_DTDVALID</a></code></strong> или <strong><code><a href="libxml.constants.php#constant.libxml-dtdload">LIBXML_DTDLOAD</a></code></strong>.
   Для подавления загрузки внешних сущностей часто
   лучше пользоваться функцией <span class="function"><a href="function.libxml-set-external-entity-loader.php" class="function">libxml_set_external_entity_loader()</a></span>.
   С PHP 8.4.0 и библиотеки Libxml &gt;= 2.13.0 доступна константа <strong><code><a href="libxml.constants.php#constant.libxml-no-xxe">LIBXML_NO_XXE</a></code></strong>,
   которая тоже подавляет загрузку из внешних источников.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.libxml-disable-entity-loader-parameters">
  <h3 class="title">Список параметров</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">disable</code></dt>
     <dd>
      <p class="para">
       Отключение (<strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>) или включение (<strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>) модулей libxml
       (таких как <a href="book.dom.php" class="xref">DOM</a>,
       <a href="book.xmlwriter.php" class="xref">XMLWriter</a> и <a href="book.xmlreader.php" class="xref">XMLReader</a>)
       для загрузки внешних сущностей.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.libxml-disable-entity-loader-returnvalues">
  <h3 class="title">Возвращаемые значения</h3>
  <p class="para">
   Функция возвращает предыдущее значение.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.libxml-disable-entity-loader-changelog">
  <h3 class="title">Список изменений</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Версия</th>
      <th>Описание</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.0.0</td>
      <td>
       Функция устарела.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>






 <div class="refsect1 seealso" id="refsect1-function.libxml-disable-entity-loader-seealso">
  <h3 class="title">Смотрите также</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.libxml-use-internal-errors.php" class="function" rel="rdfs-seeAlso">libxml_use_internal_errors()</a> - Отключение ошибок libxml и передача полномочий по выборке и обработке
   информации об ошибках пользователю</span></li>
    <li><span class="function"><a href="function.libxml-set-external-entity-loader.php" class="function" rel="rdfs-seeAlso">libxml_set_external_entity_loader()</a> - Изменение загрузчика по умолчанию для внешних объектов</span></li>
    <li>Константа <strong><code><a href="libxml.constants.php#constant.libxml-noent">LIBXML_NOENT</a></code></strong></li>
    <li>Константа <strong><code><a href="libxml.constants.php#constant.libxml-dtdvalid">LIBXML_DTDVALID</a></code></strong></li>
    <li>Константа <strong><code><a href="libxml.constants.php#constant.libxml-no-xxe">LIBXML_NO_XXE</a></code></strong></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>