<?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 => 'de',
  ),
  '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 Funktionen',
  ),
  '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);

?>
<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">Disable the ability to load external entities</span></p>

 </div>

 <div id="function.libxml-disable-entity-loader-refsynopsisdiv">
   <div class="warning"><strong class="warning">Warnung</strong><p class="simpara">Diese Funktion ist seit
PHP 8.0.0 als <em>DEPRECATED</em> (veraltet) markiert. Von der
Verwendung dieser Funktion wird dringend abgeraten.</p></div>
 </div>

 <div class="refsect1 description" id="refsect1-function.libxml-disable-entity-loader-description">
  <h3 class="title">Beschreibung</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">
   Disable/enable the ability to load external entities.
   Note that disabling the loading of external entities may cause general issues
   with loading XML documents.
  </p>
  <p class="para">
   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 <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>, or <strong><code><a href="libxml.constants.php#constant.libxml-dtdload">LIBXML_DTDLOAD</a></code></strong>.
   Generally, it is preferable to use <span class="function"><a href="function.libxml-set-external-entity-loader.php" class="function">libxml_set_external_entity_loader()</a></span>
   to suppress loading of external entities.
   The <strong><code><a href="libxml.constants.php#constant.libxml-no-xxe">LIBXML_NO_XXE</a></code></strong> constant can be used to prevent this as well (only available in Libxml &gt;= 2.13.0, as of PHP 8.4.0).
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.libxml-disable-entity-loader-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">disable</code></dt>
     <dd>
      <p class="para">
       Disable (<strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>) or enable (<strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>) libxml extensions (such as
       <a href="book.dom.php" class="xref">DOM</a>, <a href="book.xmlwriter.php" class="xref">XMLWriter</a>
       and <a href="book.xmlreader.php" class="xref">XMLReader</a>) to load external entities.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.libxml-disable-entity-loader-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Returns the previous value.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.libxml-disable-entity-loader-changelog">
  <h3 class="title">Changelog</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Beschreibung</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.0.0</td>
      <td>
       This function has been deprecated.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>






 <div class="refsect1 seealso" id="refsect1-function.libxml-disable-entity-loader-seealso">
  <h3 class="title">Siehe auch</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> - Disable libxml errors and allow user to fetch error information as needed</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> - Changes the default external entity loader</span></li>
    <li>The <strong><code><a href="libxml.constants.php#constant.libxml-noent">LIBXML_NOENT</a></code></strong> constant</li>
    <li>The <strong><code><a href="libxml.constants.php#constant.libxml-dtdvalid">LIBXML_DTDVALID</a></code></strong> constant</li>
    <li>The <strong><code><a href="libxml.constants.php#constant.libxml-no-xxe">LIBXML_NO_XXE</a></code></strong> constant</li>
   </ul>
  </p>
 </div>


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