reference/libxml/constants.xml
5e9500ddad6dbc2f1b01d7da8b53379c8b7c386c
...
...
@@ -1,13 +1,29 @@
1
-
<?xml version='1.0' encoding="utf-8"?>
1
+
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
3
<appendix xml:id="libxml.constants" xmlns="http://docbook.org/ns/docbook">
4
4
&reftitle.constants;
5
5
&extension.constants;
6
6
<variablelist>
7
-
<varlistentry>
7
+
<varlistentry xml:id="constant.libxml-biglines">
8
+
<term>
9
+
<constant>LIBXML_BIGLINES</constant>
10
+
(<type>int</type>)
11
+
</term>
12
+
<listitem>
13
+
<simpara>
14
+
Allows line numbers greater than 65535 to be reported correctly.
15
+
</simpara>
16
+
<note>
17
+
<para>
18
+
Only available as of PHP 7.0.0 with Libxml &gt;= 2.9.0
19
+
</para>
20
+
</note>
21
+
</listitem>
22
+
</varlistentry>
23
+
<varlistentry xml:id="constant.libxml-compact">
8
24
<term>
9
25
<constant>LIBXML_COMPACT</constant>
10
-
(<type>integer</type>)
26
+
(<type>int</type>)
11
27
</term>
12
28
<listitem>
13
29
<simpara>
...
...
@@ -21,10 +37,10 @@
21
37
</note>
22
38
</listitem>
23
39
</varlistentry>
24
-
<varlistentry>
40
+
<varlistentry xml:id="constant.libxml-dtdattr">
25
41
<term>
26
42
<constant>LIBXML_DTDATTR</constant>
27
-
(<type>integer</type>)
43
+
(<type>int</type>)
28
44
</term>
29
45
<listitem>
30
46
<simpara>
...
...
@@ -32,10 +48,10 @@
32
48
</simpara>
33
49
</listitem>
34
50
</varlistentry>
35
-
<varlistentry>
51
+
<varlistentry xml:id="constant.libxml-dtdload">
36
52
<term>
37
53
<constant>LIBXML_DTDLOAD</constant>
38
-
(<type>integer</type>)
54
+
(<type>int</type>)
39
55
</term>
40
56
<listitem>
41
57
<simpara>
...
...
@@ -43,21 +59,60 @@
43
59
</simpara>
44
60
</listitem>
45
61
</varlistentry>
46
-
<varlistentry>
62
+
<varlistentry xml:id="constant.libxml-dtdvalid">
47
63
<term>
48
64
<constant>LIBXML_DTDVALID</constant>
49
-
(<type>integer</type>)
65
+
(<type>int</type>)
50
66
</term>
51
67
<listitem>
52
68
<simpara>
53
69
Validate with the DTD
54
70
</simpara>
71
+
<caution>
72
+
<simpara>
73
+
Enabling validating the DTD may facilitate XML External Entity (XXE) attacks.
74
+
</simpara>
75
+
</caution>
76
+
</listitem>
77
+
</varlistentry>
78
+
<varlistentry xml:id="constant.libxml-html-noimplied">
79
+
<term>
80
+
<constant>LIBXML_HTML_NOIMPLIED</constant>
81
+
(<type>int</type>)
82
+
</term>
83
+
<listitem>
84
+
<simpara>
85
+
Sets HTML_PARSE_NOIMPLIED flag, which turns off the
86
+
automatic adding of implied html/body... elements.
87
+
</simpara>
88
+
<note>
89
+
<para>
90
+
Only available in Libxml &gt;= 2.7.7 (as of PHP &gt;= 5.4.0)
91
+
</para>
92
+
</note>
93
+
</listitem>
94
+
</varlistentry>
95
+
<varlistentry xml:id="constant.libxml-html-nodefdtd">
96
+
<term>
97
+
<constant>LIBXML_HTML_NODEFDTD</constant>
98
+
(<type>int</type>)
99
+
</term>
100
+
<listitem>
101
+
<simpara>
102
+
Sets HTML_PARSE_NODEFDTD flag, which prevents a default doctype
103
+
being added when one is not found.
104
+
</simpara>
105
+
<note>
106
+
<para>
107
+
Only available in Libxml &gt;= 2.7.8 (as of PHP &gt;= 5.4.0)
108
+
</para>
109
+
</note>
55
110
</listitem>
56
111
</varlistentry>
57
-
<varlistentry>
112
+
<varlistentry xml:id="constant.libxml-noblanks">
58
113
<term>
59
114
<constant>LIBXML_NOBLANKS</constant>
60
-
(<type>integer</type>)
115
+
(<type>int</type>)
61
116
</term>
62
117
<listitem>
63
118
<simpara>
...
...
@@ -65,10 +120,10 @@
65
120
</simpara>
66
121
</listitem>
67
122
</varlistentry>
68
-
<varlistentry>
123
+
<varlistentry xml:id="constant.libxml-nocdata">
69
124
<term>
70
125
<constant>LIBXML_NOCDATA</constant>
71
-
(<type>integer</type>)
126
+
(<type>int</type>)
72
127
</term>
73
128
<listitem>
74
129
<simpara>
...
...
@@ -76,10 +131,10 @@
76
131
</simpara>
77
132
</listitem>
78
133
</varlistentry>
79
-
<varlistentry>
134
+
<varlistentry xml:id="constant.libxml-noemptytag">
80
135
<term>
81
136
<constant>LIBXML_NOEMPTYTAG</constant>
82
-
(<type>integer</type>)
137
+
(<type>int</type>)
83
138
</term>
84
139
<listitem>
85
140
<simpara>
...
...
@@ -89,27 +144,32 @@
89
144
<note>
90
145
<para>
91
146
This option is currently just available in the
92
-
<xref linkend="domdocument.save" /> and
93
-
<xref linkend="domdocument.savexml" /> functions.
147
+
<xref linkend="domdocument.save"/> and
148
+
<xref linkend="domdocument.savexml"/> functions.
94
149
</para>
95
150
</note>
96
151
</listitem>
97
152
</varlistentry>
98
-
<varlistentry>
153
+
<varlistentry xml:id="constant.libxml-noent">
99
154
<term>
100
155
<constant>LIBXML_NOENT</constant>
101
-
(<type>integer</type>)
156
+
(<type>int</type>)
102
157
</term>
103
158
<listitem>
104
159
<simpara>
105
160
Substitute entities
106
161
</simpara>
162
+
<caution>
163
+
<simpara>
164
+
Enabling entity substitution may facilitate XML External Entity (XXE) attacks.
165
+
</simpara>
166
+
</caution>
107
167
</listitem>
108
168
</varlistentry>
109
-
<varlistentry>
169
+
<varlistentry xml:id="constant.libxml-noerror">
110
170
<term>
111
171
<constant>LIBXML_NOERROR</constant>
112
-
(<type>integer</type>)
172
+
(<type>int</type>)
113
173
</term>
114
174
<listitem>
115
175
<simpara>
...
...
@@ -117,10 +177,10 @@
117
177
</simpara>
118
178
</listitem>
119
179
</varlistentry>
120
-
<varlistentry>
180
+
<varlistentry xml:id="constant.libxml-nonet">
121
181
<term>
122
182
<constant>LIBXML_NONET</constant>
123
-
(<type>integer</type>)
183
+
(<type>int</type>)
124
184
</term>
125
185
<listitem>
126
186
<simpara>
...
...
@@ -128,10 +188,10 @@
128
188
</simpara>
129
189
</listitem>
130
190
</varlistentry>
131
-
<varlistentry>
191
+
<varlistentry xml:id="constant.libxml-nowarning">
132
192
<term>
133
193
<constant>LIBXML_NOWARNING</constant>
134
-
(<type>integer</type>)
194
+
(<type>int</type>)
135
195
</term>
136
196
<listitem>
137
197
<simpara>
...
...
@@ -139,10 +199,10 @@
139
199
</simpara>
140
200
</listitem>
141
201
</varlistentry>
142
-
<varlistentry>
202
+
<varlistentry xml:id="constant.libxml-noxmldecl">
143
203
<term>
144
204
<constant>LIBXML_NOXMLDECL</constant>
145
-
(<type>integer</type>)
205
+
(<type>int</type>)
146
206
</term>
147
207
<listitem>
148
208
<simpara>
...
...
@@ -155,21 +215,55 @@
155
215
</note>
156
216
</listitem>
157
217
</varlistentry>
158
-
<varlistentry>
218
+
<varlistentry xml:id="constant.libxml-nsclean">
159
219
<term>
160
220
<constant>LIBXML_NSCLEAN</constant>
161
-
(<type>integer</type>)
221
+
(<type>int</type>)
162
222
</term>
163
223
<listitem>
164
224
<simpara>
165
-
Remove redundant namespaces declarations
225
+
Remove redundant namespace declarations
166
226
</simpara>
167
227
</listitem>
168
228
</varlistentry>
169
-
<varlistentry>
229
+
<varlistentry xml:id="constant.libxml-parsehuge">
230
+
<term>
231
+
<constant>LIBXML_PARSEHUGE</constant>
232
+
(<type>int</type>)
233
+
</term>
234
+
<listitem>
235
+
<simpara>
236
+
Sets XML_PARSE_HUGE flag, which relaxes any hardcoded limit from the parser. This affects
237
+
limits like maximum depth of a document or the entity recursion, as well as limits of the
238
+
size of text nodes.
239
+
</simpara>
240
+
<note>
241
+
<para>
242
+
Only available in Libxml &gt;= 2.7.0 (as of PHP &gt;= 5.3.2 and PHP &gt;= 5.2.12)
243
+
</para>
244
+
</note>
245
+
</listitem>
246
+
</varlistentry>
247
+
<varlistentry xml:id="constant.libxml-pedantic">
248
+
<term>
249
+
<constant>LIBXML_PEDANTIC</constant>
250
+
(<type>int</type>)
251
+
</term>
252
+
<listitem>
253
+
<simpara>
254
+
Sets XML_PARSE_PEDANTIC flag, which enables pedantic error reporting.
255
+
</simpara>
256
+
<note>
257
+
<para>
258
+
Available as of PHP &gt;= 5.4.0
259
+
</para>
260
+
</note>
261
+
</listitem>
262
+
</varlistentry>
263
+
<varlistentry xml:id="constant.libxml-xinclude">
170
264
<term>
171
265
<constant>LIBXML_XINCLUDE</constant>
172
-
(<type>integer</type>)
266
+
(<type>int</type>)
173
267
</term>
174
268
<listitem>
175
269
<simpara>
...
...
@@ -177,10 +271,10 @@
177
271
</simpara>
178
272
</listitem>
179
273
</varlistentry>
180
-
<varlistentry>
274
+
<varlistentry xml:id="constant.libxml-err-error">
181
275
<term>
182
276
<constant>LIBXML_ERR_ERROR</constant>
183
-
(<type>integer</type>)
277
+
(<type>int</type>)
184
278
</term>
185
279
<listitem>
186
280
<simpara>
...
...
@@ -188,10 +282,10 @@
188
282
</simpara>
189
283
</listitem>
190
284
</varlistentry>
191
-
<varlistentry>
285
+
<varlistentry xml:id="constant.libxml-err-fatal">
192
286
<term>
193
287
<constant>LIBXML_ERR_FATAL</constant>
194
-
(<type>integer</type>)
288
+
(<type>int</type>)
195
289
</term>
196
290
<listitem>
197
291
<simpara>
...
...
@@ -199,10 +293,10 @@
199
293
</simpara>
200
294
</listitem>
201
295
</varlistentry>
202
-
<varlistentry>
296
+
<varlistentry xml:id="constant.libxml-err-none">
203
297
<term>
204
298
<constant>LIBXML_ERR_NONE</constant>
205
-
(<type>integer</type>)
299
+
(<type>int</type>)
206
300
</term>
207
301
<listitem>
208
302
<simpara>
...
...
@@ -210,10 +304,10 @@
210
304
</simpara>
211
305
</listitem>
212
306
</varlistentry>
213
-
<varlistentry>
307
+
<varlistentry xml:id="constant.libxml-err-warning">
214
308
<term>
215
309
<constant>LIBXML_ERR_WARNING</constant>
216
-
(<type>integer</type>)
310
+
(<type>int</type>)
217
311
</term>
218
312
<listitem>
219
313
<simpara>
...
...
@@ -221,10 +315,10 @@
221
315
</simpara>
222
316
</listitem>
223
317
</varlistentry>
224
-
<varlistentry>
318
+
<varlistentry xml:id="constant.libxml-version">
225
319
<term>
226
320
<constant>LIBXML_VERSION</constant>
227
-
(<type>integer</type>)
321
+
(<type>int</type>)
228
322
</term>
229
323
<listitem>
230
324
<simpara>
...
...
@@ -232,10 +326,10 @@
232
326
</simpara>
233
327
</listitem>
234
328
</varlistentry>
235
-
<varlistentry>
329
+
<varlistentry xml:id="constant.libxml-dotted-version">
236
330
<term>
237
331
<constant>LIBXML_DOTTED_VERSION</constant>
238
-
(<type>string</type>)
332
+
(<type>string</type>)
239
333
</term>
240
334
<listitem>
241
335
<simpara>
...
...
@@ -243,9 +337,24 @@
243
337
</simpara>
244
338
</listitem>
245
339
</varlistentry>
340
+
<varlistentry xml:id="constant.libxml-schema-create">
341
+
<term>
342
+
<constant>LIBXML_SCHEMA_CREATE</constant>
343
+
(<type>int</type>)
344
+
</term>
345
+
<listitem>
346
+
<simpara>
347
+
Create default/fixed value nodes during XSD schema validation
348
+
</simpara>
349
+
<note>
350
+
<para>
351
+
Only available in Libxml &gt;= 2.6.14 (as of PHP &gt;= 5.5.2)
352
+
</para>
353
+
</note>
354
+
</listitem>
355
+
</varlistentry>
246
356
</variablelist>
247
357
</appendix>
248
-

249
358
<!-- Keep this comment at the end of the file
250
359
Local variables:
251
360
mode: sgml
252
361