<?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 => 'ja',
  ),
  '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' => 'ja',
    '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>, or <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> を使うことが望ましいです。
   <strong><code><a href="libxml.constants.php#constant.libxml-no-xxe">LIBXML_NO_XXE</a></code></strong> 定数を使ってこれを防ぐこともできます (PHP 8.4.0 以降、Libxml &gt;= 2.13.0 でのみ利用可能)。
  </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">
       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>) で、外部エンティティの読み込み機能を
       無効 (<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>) にします。
      </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>The <strong><code><a href="libxml.constants.php#constant.libxml-noent">LIBXML_NOENT</a></code></strong> 定数</li>
    <li>The <strong><code><a href="libxml.constants.php#constant.libxml-dtdvalid">LIBXML_DTDVALID</a></code></strong> 定数</li>
    <li>The <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); ?>