Fix #62577: simplexml_load_file does not file if libxml_disable_entity_loader(true)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350442 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christoph Michael Becker 2020-08-31 16:29:59 +00:00
parent ee713929a5
commit a07808fdd7
3 changed files with 14 additions and 0 deletions

View file

@ -283,6 +283,11 @@
entities. This attribute is not part of
the DOM specification and is specific to libxml.
</para>
<caution>
<simpara>
Enabling entity substitution may facilitate XML External Entity (XXE) attacks.
</simpara>
</caution>
</listitem>
</varlistentry>
<varlistentry xml:id="domdocument.props.validateonparse">

View file

@ -154,6 +154,11 @@
<simpara>
Substitute entities
</simpara>
<caution>
<simpara>
Enabling entity substitution may facilitate XML External Entity (XXE) attacks.
</simpara>
</caution>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.libxml-noerror">

View file

@ -15,6 +15,10 @@
</methodsynopsis>
<para>
Disable/enable the ability to load external entities.
Note that disabling the loading of external entities may cause general issues
with loading XML documents. However, as of libxml 2.9.0 entity substitution
is disabled by default, so there is no need to disable the loading of external
entities.
</para>
</refsect1>