[DOC-CVS] [doc-en] master: ext/libxml: Clarify that `LIBXML_PARSEHUGE` raises limits rather than removing them (#5649)
[email protected] (Alexandre Daubois via GitHub) Fri, 3 Jul 2026 11:17:49 +0000
| Newsgroups | php.doc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Alexandre Daubois (alexandre-daubois)
Committer: GitHub (web-flow)
Pusher: jordikroon
Date: 2026-07-03T13:17:47+02:00
Commit: https://github.com/php/doc-en/commit/7dce5910421f42a97717220587841423ef1fa27a
Raw diff: https://github.com/php/doc-en/commit/7dce5910421f42a97717220587841423ef1fa27a.diff
ext/libxml: Clarify that `LIBXML_PARSEHUGE` raises limits rather than removing them (#5649)
Changed paths:
M reference/libxml/constants.xml
Diff:
diff --git a/reference/libxml/constants.xml b/reference/libxml/constants.xml
index d9e844bb193e..0fdb28c74d74 100644
--- a/reference/libxml/constants.xml
+++ b/reference/libxml/constants.xml
@@ -273,14 +273,14 @@
</term>
<listitem>
<simpara>
- Sets XML_PARSE_HUGE flag, which relaxes any hardcoded limit from the parser. This affects
+ Sets XML_PARSE_HUGE flag, which increases some hardcoded limits from the parser. This affects
limits like maximum depth of a document or the entity recursion, as well as limits of the
size of text nodes.
</simpara>
<caution>
<simpara>
- Because this relaxes the hardcoded limits, it should only be used with trusted data.
- Removing the depth limit on untrusted input can lead to excessive resource consumption,
+ Because this increases the hardcoded limits, it should only be used with trusted data.
+ Raising the depth limit on untrusted input can lead to excessive resource consumption,
such as a stack overflow while processing a deeply nested document.
</simpara>
</caution>