mirror of
https://github.com/php/doc-pt_br.git
synced 2026-04-26 17:48:09 +02:00
157 lines
4.3 KiB
XML
157 lines
4.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- EN-Revision: 9b1673cf114a1e10c4563ab9223cb56aed552b89 Maintainer: leonardolara Status: ready -->
|
|
<refentry xml:id="function.libxml-disable-entity-loader" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<refnamediv>
|
|
<refname>libxml_disable_entity_loader</refname>
|
|
<refpurpose>Desabilita a capacidade de carregar entidades externas</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsynopsisdiv>
|
|
&warn.deprecated.function-8-0-0;
|
|
</refsynopsisdiv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<modifier role="attribute">#[\Deprecated]</modifier>
|
|
<type>bool</type><methodname>libxml_disable_entity_loader</methodname>
|
|
<methodparam choice="opt"><type>bool</type><parameter>disable</parameter><initializer>&true;</initializer></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Desabilita/habilita a capacidade de carregar entidades externas.
|
|
Observe que desabilitar o carregamento de entidades externas pode causar problemas gerais
|
|
com carregamento de documentos XML.
|
|
</para>
|
|
<para>
|
|
A partir da libxml 2.9.0, substituição de entidade
|
|
está desabilitada por padrão, portanto não é necessário desabilitar o carregamento de entidades
|
|
externas,
|
|
a menos que haja necessidade de resolver referências de entidades internas com <constant>LIBXML_NOENT</constant>,
|
|
<constant>LIBXML_DTDVALID</constant> ou <constant>LIBXML_DTDLOAD</constant>.
|
|
Geralmente, é preferível usar <function>libxml_set_external_entity_loader</function>
|
|
para suprimir carregamento de entidades externas.
|
|
A constante <constant>LIBXML_NO_XXE</constant> também pode ser usada para evitar isto (disponível somente na Libxml >= 2.13.0, a partir do PHP 8.4.0).
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>disable</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Desabilita (&true;) ou habilita (&false;) a capacidade de extensões libxml (como
|
|
<xref linkend="book.dom" />, <xref linkend="book.xmlwriter" />
|
|
e <xref linkend="book.xmlreader" />) carregarem entidades externas.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Retorna o valor anterior.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="changelog">
|
|
&reftitle.changelog;
|
|
<informaltable>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>&Version;</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>8.0.0</entry>
|
|
<entry>
|
|
Esta função foi descontinuada.
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</refsect1>
|
|
|
|
<!--
|
|
<refsect1 role="errors">
|
|
&reftitle.errors;
|
|
<para>
|
|
When does this function issue E_* level errors, and/or throw exceptions.
|
|
</para>
|
|
</refsect1>
|
|
-->
|
|
|
|
<!--
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title><function>libxml_disable_entity_loader</function> example</title>
|
|
<para>
|
|
Any text that describes the purpose of the example, or what
|
|
goes on in the example should be here.
|
|
</para>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
|
|
/* ... */
|
|
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs.similar;
|
|
<screen>
|
|
<![CDATA[
|
|
...
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
-->
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>libxml_use_internal_errors</function></member>
|
|
<member><function>libxml_set_external_entity_loader</function></member>
|
|
<member>A constante <constant>LIBXML_NOENT</constant></member>
|
|
<member>A constante <constant>LIBXML_DTDVALID</constant></member>
|
|
<member>A constante <constant>LIBXML_NO_XXE</constant></member>
|
|
</simplelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|