File tree Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 257
257
</simpara >
258
258
</listitem >
259
259
</varlistentry >
260
+ <varlistentry xml : id =" constant.xml-option-parse-huge" >
261
+ <term >
262
+ <constant >XML_OPTION_PARSE_HUGE</constant >
263
+ (<type >int</type >)
264
+ </term >
265
+ <listitem >
266
+ <simpara >
267
+ Available as of PHP 8.4.0.
268
+ When libxml2 < 2.7.0 is used (e.g. on PHP 7.x),
269
+ this option is enabled by default and cannot be disabled.
270
+ </simpara >
271
+ </listitem >
272
+ </varlistentry >
260
273
<varlistentry xml : id =" constant.xml-option-target-encoding" >
261
274
<term >
262
275
<constant >XML_OPTION_TARGET_ENCODING</constant >
Original file line number Diff line number Diff line change 35
35
<listitem >
36
36
<simpara >
37
37
Which option to fetch. <constant >XML_OPTION_CASE_FOLDING</constant >,
38
+ <constant >XML_OPTION_PARSE_HUGE</constant >,
38
39
<constant >XML_OPTION_SKIP_TAGSTART</constant >, <constant >XML_OPTION_SKIP_WHITE</constant >
39
40
and <constant >XML_OPTION_TARGET_ENCODING</constant > are available.
40
41
See <function >xml_parser_set_option</function > for their description.
Original file line number Diff line number Diff line change 59
59
XML parser. Enabled by default.
60
60
</entry >
61
61
</row >
62
+ <row >
63
+ <entry ><constant >XML_OPTION_PARSE_HUGE</constant ></entry >
64
+ <entry >bool</entry >
65
+ <entry >
66
+ Allows parsing documents larger than 10 MB.
67
+ This option should only be enabled when the document size is
68
+ bounded because this could otherwise lead to a DoS.
69
+ This option is only available when using libxml2.
70
+ </entry >
71
+ </row >
62
72
<row >
63
73
<entry ><constant >XML_OPTION_SKIP_TAGSTART</constant ></entry >
64
74
<entry >integer</entry >
135
145
</row >
136
146
</thead >
137
147
<tbody >
148
+ <row >
149
+ <entry >8.4.0</entry >
150
+ <entry >
151
+ Added the option <constant >XML_OPTION_PARSE_HUGE</constant >.
152
+ </entry >
153
+ </row >
138
154
<row >
139
155
<entry >8.3.0</entry >
140
156
<entry >
You can’t perform that action at this time.
0 commit comments