Document libxml_disable_entity_loader()

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@282639 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Hannes Magnusson 2009-06-23 12:22:57 +00:00
parent 9ea1b00bda
commit 98574a0e0e
3 changed files with 130 additions and 3 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.9 $ -->
<!-- $Revision: 1.10 $ -->
<appendix xml:id="migration53" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Migrating from PHP 5.2.x to PHP 5.3.x</title>
<para>
@ -794,6 +794,16 @@
</listitem>
</itemizedlist>
<para><link linkend="book.libxml">libXML</link>:</para>
<itemizedlist>
<listitem>
<simpara>
<function>libxml_disable_entity_loader</function>
- Disable the ability to load external entities.
</simpara>
</listitem>
</itemizedlist>
<para><link linkend="book.mysqli">MySQL Improved</link>:</para>
<itemizedlist>
<listitem>

View file

@ -0,0 +1,116 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.1 $ -->
<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>Disable the ability to load external entities</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>ReturnType</type><methodname>libxml_disable_entity_loader</methodname>
<methodparam choice="opt"><type>string</type><parameter>disable</parameter> <initializer>TRUE</initializer></methodparam>
</methodsynopsis>
<para>
Disable/enable the ability to load external entities.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>disable</parameter></term>
<listitem>
<para>
Disable (&true;) or enable (&false;) libxml extensions (such as
<xref linkend="book.dom" />, <xref linkend="book.xmlwriter" />
and <xref linkend="book.xmlreader" />) to load external entities.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns the previous value.
</para>
</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><link linkend="libxml.constants">The <constant>LIBXML_NONET</constant> constant</link></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:"../../../../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
-->

View file

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<!-- $Revision: 1.1 $ -->
<!-- $Revision: 1.2 $ -->
<!--
Do NOT translate this file
-->
@ -10,6 +10,7 @@
<function name='libxml_get_last_error' from='PHP 5 &gt;= 5.1.0'/>
<function name='libxml_set_streams_context' from='PHP 5'/>
<function name='libxml_use_internal_errors' from='PHP 5 &gt;= 5.1.0'/>
<function name='libxml_disable_entity_loader' from='PHP 5 &gt;= 5.3.0'/>
</versions>
<!-- Keep this comment at the end of the file
@ -31,4 +32,4 @@ End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
-->