reference/filter/constants.xml
5e9500ddad6dbc2f1b01d7da8b53379c8b7c386c
...
...
@@ -1,14 +1,14 @@
1
-
<?xml version='1.0' encoding="utf-8"?>
1
+
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
3
<!-- Generated by xml_proto.php v2.4. Found in /scripts directory of phpdoc. -->
4
4
<appendix xml:id="filter.constants" xmlns="http://docbook.org/ns/docbook">
5
5
&reftitle.constants;
6
6
&extension.constants;
7
7
<variablelist>
8
-
<varlistentry>
8
+
<varlistentry xml:id="constant.input-post">
9
9
<term>
10
10
<constant>INPUT_POST</constant>
11
-
(<type>integer</type>)
11
+
(<type>int</type>)
12
12
</term>
13
13
<listitem>
14
14
<simpara>
...
...
@@ -16,10 +16,10 @@
16
16
</simpara>
17
17
</listitem>
18
18
</varlistentry>
19
-
<varlistentry>
19
+
<varlistentry xml:id="constant.input-get">
20
20
<term>
21
21
<constant>INPUT_GET</constant>
22
-
(<type>integer</type>)
22
+
(<type>int</type>)
23
23
</term>
24
24
<listitem>
25
25
<simpara>
...
...
@@ -27,10 +27,10 @@
27
27
</simpara>
28
28
</listitem>
29
29
</varlistentry>
30
-
<varlistentry>
30
+
<varlistentry xml:id="constant.input-cookie">
31
31
<term>
32
32
<constant>INPUT_COOKIE</constant>
33
-
(<type>integer</type>)
33
+
(<type>int</type>)
34
34
</term>
35
35
<listitem>
36
36
<simpara>
...
...
@@ -38,10 +38,10 @@
38
38
</simpara>
39
39
</listitem>
40
40
</varlistentry>
41
-
<varlistentry>
41
+
<varlistentry xml:id="constant.input-env">
42
42
<term>
43
43
<constant>INPUT_ENV</constant>
44
-
(<type>integer</type>)
44
+
(<type>int</type>)
45
45
</term>
46
46
<listitem>
47
47
<simpara>
...
...
@@ -49,10 +49,10 @@
49
49
</simpara>
50
50
</listitem>
51
51
</varlistentry>
52
-
<varlistentry>
52
+
<varlistentry xml:id="constant.input-server">
53
53
<term>
54
54
<constant>INPUT_SERVER</constant>
55
-
(<type>integer</type>)
55
+
(<type>int</type>)
56
56
</term>
57
57
<listitem>
58
58
<simpara>
...
...
@@ -60,10 +60,10 @@
60
60
</simpara>
61
61
</listitem>
62
62
</varlistentry>
63
-
<varlistentry>
63
+
<varlistentry xml:id="constant.input-session">
64
64
<term>
65
65
<constant>INPUT_SESSION</constant>
66
-
(<type>integer</type>)
66
+
(<type>int</type>)
67
67
</term>
68
68
<listitem>
69
69
<simpara>
...
...
@@ -72,10 +72,10 @@
72
72
</simpara>
73
73
</listitem>
74
74
</varlistentry>
75
-
<varlistentry>
75
+
<varlistentry xml:id="constant.input-request">
76
76
<term>
77
77
<constant>INPUT_REQUEST</constant>
78
-
(<type>integer</type>)
78
+
(<type>int</type>)
79
79
</term>
80
80
<listitem>
81
81
<simpara>
...
...
@@ -84,10 +84,10 @@
84
84
</simpara>
85
85
</listitem>
86
86
</varlistentry>
87
-
<varlistentry>
87
+
<varlistentry xml:id="constant.filter-flag-none">
88
88
<term>
89
89
<constant>FILTER_FLAG_NONE</constant>
90
-
(<type>integer</type>)
90
+
(<type>int</type>)
91
91
</term>
92
92
<listitem>
93
93
<simpara>
...
...
@@ -95,10 +95,10 @@
95
95
</simpara>
96
96
</listitem>
97
97
</varlistentry>
98
-
<varlistentry>
98
+
<varlistentry xml:id="constant.filter-require-scalar">
99
99
<term>
100
100
<constant>FILTER_REQUIRE_SCALAR</constant>
101
-
(<type>integer</type>)
101
+
(<type>int</type>)
102
102
</term>
103
103
<listitem>
104
104
<simpara>
...
...
@@ -106,10 +106,10 @@
106
106
</simpara>
107
107
</listitem>
108
108
</varlistentry>
109
-
<varlistentry>
109
+
<varlistentry xml:id="constant.filter-require-array">
110
110
<term>
111
111
<constant>FILTER_REQUIRE_ARRAY</constant>
112
-
(<type>integer</type>)
112
+
(<type>int</type>)
113
113
</term>
114
114
<listitem>
115
115
<simpara>
...
...
@@ -117,10 +117,10 @@
117
117
</simpara>
118
118
</listitem>
119
119
</varlistentry>
120
-
<varlistentry>
120
+
<varlistentry xml:id="constant.filter-force-array">
121
121
<term>
122
122
<constant>FILTER_FORCE_ARRAY</constant>
123
-
(<type>integer</type>)
123
+
(<type>int</type>)
124
124
</term>
125
125
<listitem>
126
126
<simpara>
...
...
@@ -128,10 +128,10 @@
128
128
</simpara>
129
129
</listitem>
130
130
</varlistentry>
131
-
<varlistentry>
131
+
<varlistentry xml:id="constant.filter-null-on-failure">
132
132
<term>
133
133
<constant>FILTER_NULL_ON_FAILURE</constant>
134
-
(<type>integer</type>)
134
+
(<type>int</type>)
135
135
</term>
136
136
<listitem>
137
137
<simpara>
...
...
@@ -139,10 +139,10 @@
139
139
</simpara>
140
140
</listitem>
141
141
</varlistentry>
142
-
<varlistentry>
142
+
<varlistentry xml:id="constant.filter-validate-int">
143
143
<term>
144
144
<constant>FILTER_VALIDATE_INT</constant>
145
-
(<type>integer</type>)
145
+
(<type>int</type>)
146
146
</term>
147
147
<listitem>
148
148
<simpara>
...
...
@@ -150,10 +150,21 @@
150
150
</simpara>
151
151
</listitem>
152
152
</varlistentry>
153
-
<varlistentry>
153
+
<varlistentry xml:id="constant.filter-validate-bool">
154
+
<term>
155
+
<constant>FILTER_VALIDATE_BOOL</constant>
156
+
(<type>int</type>)
157
+
</term>
158
+
<listitem>
159
+
<simpara>
160
+
Alias of <constant>FILTER_VALIDATE_BOOLEAN</constant>.
161
+
</simpara>
162
+
</listitem>
163
+
</varlistentry>
164
+
<varlistentry xml:id="constant.filter-validate-boolean">
154
165
<term>
155
166
<constant>FILTER_VALIDATE_BOOLEAN</constant>
156
-
(<type>integer</type>)
167
+
(<type>int</type>)
157
168
</term>
158
169
<listitem>
159
170
<simpara>
...
...
@@ -161,10 +172,10 @@
161
172
</simpara>
162
173
</listitem>
163
174
</varlistentry>
164
-
<varlistentry>
175
+
<varlistentry xml:id="constant.filter-validate-float">
165
176
<term>
166
177
<constant>FILTER_VALIDATE_FLOAT</constant>
167
-
(<type>integer</type>)
178
+
(<type>int</type>)
168
179
</term>
169
180
<listitem>
170
181
<simpara>
...
...
@@ -172,10 +183,10 @@
172
183
</simpara>
173
184
</listitem>
174
185
</varlistentry>
175
-
<varlistentry>
186
+
<varlistentry xml:id="constant.filter-validate-regexp">
176
187
<term>
177
188
<constant>FILTER_VALIDATE_REGEXP</constant>
178
-
(<type>integer</type>)
189
+
(<type>int</type>)
179
190
</term>
180
191
<listitem>
181
192
<simpara>
...
...
@@ -183,10 +194,10 @@
183
194
</simpara>
184
195
</listitem>
185
196
</varlistentry>
186
-
<varlistentry>
197
+
<varlistentry xml:id="constant.filter-validate-url">
187
198
<term>
188
199
<constant>FILTER_VALIDATE_URL</constant>
189
-
(<type>integer</type>)
200
+
(<type>int</type>)
190
201
</term>
191
202
<listitem>
192
203
<simpara>
...
...
@@ -194,10 +205,22 @@
194
205
</simpara>
195
206
</listitem>
196
207
</varlistentry>
197
-
<varlistentry>
208
+
<varlistentry xml:id="constant.filter-validate-domain">
209
+
<term>
210
+
<constant>FILTER_VALIDATE_DOMAIN</constant>
211
+
(<type>int</type>)
212
+
</term>
213
+
<listitem>
214
+
<simpara>
215
+
ID of "validate_domain" filter.
216
+
(Available as of PHP 7.0.0)
217
+
</simpara>
218
+
</listitem>
219
+
</varlistentry>
220
+
<varlistentry xml:id="constant.filter-validate-email">
198
221
<term>
199
222
<constant>FILTER_VALIDATE_EMAIL</constant>
200
-
(<type>integer</type>)
223
+
(<type>int</type>)
201
224
</term>
202
225
<listitem>
203
226
<simpara>
...
...
@@ -205,10 +228,10 @@
205
228
</simpara>
206
229
</listitem>
207
230
</varlistentry>
208
-
<varlistentry>
231
+
<varlistentry xml:id="constant.filter-validate-ip">
209
232
<term>
210
233
<constant>FILTER_VALIDATE_IP</constant>
211
-
(<type>integer</type>)
234
+
(<type>int</type>)
212
235
</term>
213
236
<listitem>
214
237
<simpara>
...
...
@@ -216,21 +239,33 @@
216
239
</simpara>
217
240
</listitem>
218
241
</varlistentry>
219
-
<varlistentry>
242
+
<varlistentry xml:id="constant.filter-validate-mac">
243
+
<term>
244
+
<constant>FILTER_VALIDATE_MAC</constant>
245
+
(<type>int</type>)
246
+
</term>
247
+
<listitem>
248
+
<simpara>
249
+
ID of "validate_mac_address" filter.
250
+
</simpara>
251
+
</listitem>
252
+
</varlistentry>
253
+
<varlistentry xml:id="constant.filter-default">
220
254
<term>
221
255
<constant>FILTER_DEFAULT</constant>
222
-
(<type>integer</type>)
256
+
(<type>int</type>)
223
257
</term>
224
258
<listitem>
225
259
<simpara>
226
-
ID of default ("string") filter.
260
+
ID of default ("unsafe_raw") filter. This is equivalent to
261
+
<constant>FILTER_UNSAFE_RAW</constant>.
227
262
</simpara>
228
263
</listitem>
229
264
</varlistentry>
230
-
<varlistentry>
265
+
<varlistentry xml:id="constant.filter-unsafe-raw">
231
266
<term>
232
267
<constant>FILTER_UNSAFE_RAW</constant>
233
-
(<type>integer</type>)
268
+
(<type>int</type>)
234
269
</term>
235
270
<listitem>
236
271
<simpara>
...
...
@@ -238,32 +273,36 @@
238
273
</simpara>
239
274
</listitem>
240
275
</varlistentry>
241
-
<varlistentry>
276
+
<varlistentry xml:id="constant.filter-sanitize-string">
242
277
<term>
243
278
<constant>FILTER_SANITIZE_STRING</constant>
244
-
(<type>integer</type>)
279
+
(<type>int</type>)
245
280
</term>
246
281
<listitem>
247
282
<simpara>
248
283
ID of "string" filter.
284
+
(<emphasis>Deprecated</emphasis> as of PHP 8.1.0,
285
+
use <function>htmlspecialchars</function> instead.)
249
286
</simpara>
250
287
</listitem>
251
288
</varlistentry>
252
-
<varlistentry>
289
+
<varlistentry xml:id="constant.filter-sanitize-stripped">
253
290
<term>
254
291
<constant>FILTER_SANITIZE_STRIPPED</constant>
255
-
(<type>integer</type>)
292
+
(<type>int</type>)
256
293
</term>
257
294
<listitem>
258
295
<simpara>
259
296
ID of "stripped" filter.
297
+
(<emphasis>Deprecated</emphasis> as of PHP 8.1.0,
298
+
use <function>htmlspecialchars</function> instead.)
260
299
</simpara>
261
300
</listitem>
262
301
</varlistentry>
263
-
<varlistentry>
302
+
<varlistentry xml:id="constant.filter-sanitize-encoded">
264
303
<term>
265
304
<constant>FILTER_SANITIZE_ENCODED</constant>
266
-
(<type>integer</type>)
305
+
(<type>int</type>)
267
306
</term>
268
307
<listitem>
269
308
<simpara>
...
...
@@ -271,10 +310,10 @@
271
310
</simpara>
272
311
</listitem>
273
312
</varlistentry>
274
-
<varlistentry>
313
+
<varlistentry xml:id="constant.filter-sanitize-special-chars">
275
314
<term>
276
315
<constant>FILTER_SANITIZE_SPECIAL_CHARS</constant>
277
-
(<type>integer</type>)
316
+
(<type>int</type>)
278
317
</term>
279
318
<listitem>
280
319
<simpara>
...
...
@@ -282,10 +321,10 @@
282
321
</simpara>
283
322
</listitem>
284
323
</varlistentry>
285
-
<varlistentry>
324
+
<varlistentry xml:id="constant.filter-sanitize-email">
286
325
<term>
287
326
<constant>FILTER_SANITIZE_EMAIL</constant>
288
-
(<type>integer</type>)
327
+
(<type>int</type>)
289
328
</term>
290
329
<listitem>
291
330
<simpara>
...
...
@@ -293,10 +332,10 @@
293
332
</simpara>
294
333
</listitem>
295
334
</varlistentry>
296
-
<varlistentry>
335
+
<varlistentry xml:id="constant.filter-sanitize-url">
297
336
<term>
298
337
<constant>FILTER_SANITIZE_URL</constant>
299
-
(<type>integer</type>)
338
+
(<type>int</type>)
300
339
</term>
301
340
<listitem>
302
341
<simpara>
...
...
@@ -304,10 +343,10 @@
304
343
</simpara>
305
344
</listitem>
306
345
</varlistentry>
307
-
<varlistentry>
346
+
<varlistentry xml:id="constant.filter-sanitize-number-int">
308
347
<term>
309
348
<constant>FILTER_SANITIZE_NUMBER_INT</constant>
310
-
(<type>integer</type>)
349
+
(<type>int</type>)
311
350
</term>
312
351
<listitem>
313
352
<simpara>
...
...
@@ -315,10 +354,10 @@
315
354
</simpara>
316
355
</listitem>
317
356
</varlistentry>
318
-
<varlistentry>
357
+
<varlistentry xml:id="constant.filter-sanitize-number-float">
319
358
<term>
320
359
<constant>FILTER_SANITIZE_NUMBER_FLOAT</constant>
321
-
(<type>integer</type>)
360
+
(<type>int</type>)
322
361
</term>
323
362
<listitem>
324
363
<simpara>
...
...
@@ -326,21 +365,36 @@
326
365
</simpara>
327
366
</listitem>
328
367
</varlistentry>
329
-
<varlistentry>
368
+
<varlistentry xml:id="constant.filter-sanitize-magic-quotes">
330
369
<term>
331
370
<constant>FILTER_SANITIZE_MAGIC_QUOTES</constant>
332
-
(<type>integer</type>)
371
+
(<type>int</type>)
333
372
</term>
334
373
<listitem>
335
374
<simpara>
336
375
ID of "magic_quotes" filter.
376
+
(<emphasis>DEPRECATED</emphasis> as of PHP 7.3.0 and
377
+
<emphasis>REMOVED</emphasis> as of PHP 8.0.0,
378
+
use <constant>FILTER_SANITIZE_ADD_SLASHES</constant> instead.)
379
+
</simpara>
380
+
</listitem>
381
+
</varlistentry>
382
+
<varlistentry xml:id="constant.filter-sanitize-add-slashes">
383
+
<term>
384
+
<constant>FILTER_SANITIZE_ADD_SLASHES</constant>
385
+
(<type>int</type>)
386
+
</term>
387
+
<listitem>
388
+
<simpara>
389
+
ID of "add_slashes" filter.
390
+
(Available as of PHP 7.3.0)
337
391
</simpara>
338
392
</listitem>
339
393
</varlistentry>
340
-
<varlistentry>
394
+
<varlistentry xml:id="constant.filter-callback">
341
395
<term>
342
396
<constant>FILTER_CALLBACK</constant>
343
-
(<type>integer</type>)
397
+
(<type>int</type>)
344
398
</term>
345
399
<listitem>
346
400
<simpara>
...
...
@@ -348,10 +402,10 @@
348
402
</simpara>
349
403
</listitem>
350
404
</varlistentry>
351
-
<varlistentry>
405
+
<varlistentry xml:id="constant.filter-flag-allow-octal">
352
406
<term>
353
407
<constant>FILTER_FLAG_ALLOW_OCTAL</constant>
354
-
(<type>integer</type>)
408
+
(<type>int</type>)
355
409
</term>
356
410
<listitem>
357
411
<simpara>
...
...
@@ -359,10 +413,10 @@
359
413
</simpara>
360
414
</listitem>
361
415
</varlistentry>
362
-
<varlistentry>
416
+
<varlistentry xml:id="constant.filter-flag-allow-hex">
363
417
<term>
364
418
<constant>FILTER_FLAG_ALLOW_HEX</constant>
365
-
(<type>integer</type>)
419
+
(<type>int</type>)
366
420
</term>
367
421
<listitem>
368
422
<simpara>
...
...
@@ -370,10 +424,10 @@
370
424
</simpara>
371
425
</listitem>
372
426
</varlistentry>
373
-
<varlistentry>
427
+
<varlistentry xml:id="constant.filter-flag-strip-low">
374
428
<term>
375
429
<constant>FILTER_FLAG_STRIP_LOW</constant>
376
-
(<type>integer</type>)
430
+
(<type>int</type>)
377
431
</term>
378
432
<listitem>
379
433
<simpara>
...
...
@@ -381,10 +435,10 @@
381
435
</simpara>
382
436
</listitem>
383
437
</varlistentry>
384
-
<varlistentry>
438
+
<varlistentry xml:id="constant.filter-flag-strip-high">
385
439
<term>
386
440
<constant>FILTER_FLAG_STRIP_HIGH</constant>
387
-
(<type>integer</type>)
441
+
(<type>int</type>)
388
442
</term>
389
443
<listitem>
390
444
<simpara>
...
...
@@ -392,10 +446,21 @@
392
446
</simpara>
393
447
</listitem>
394
448
</varlistentry>
395
-
<varlistentry>
449
+
<varlistentry xml:id="constant.filter-flag-strip-backtick">
450
+
<term>
451
+
<constant>FILTER_FLAG_STRIP_BACKTICK</constant>
452
+
(<type>int</type>)
453
+
</term>
454
+
<listitem>
455
+
<simpara>
456
+
Strips backtick characters.
457
+
</simpara>
458
+
</listitem>
459
+
</varlistentry>
460
+
<varlistentry xml:id="constant.filter-flag-encode-low">
396
461
<term>
397
462
<constant>FILTER_FLAG_ENCODE_LOW</constant>
398
-
(<type>integer</type>)
463
+
(<type>int</type>)
399
464
</term>
400
465
<listitem>
401
466
<simpara>
...
...
@@ -403,10 +468,10 @@
403
468
</simpara>
404
469
</listitem>
405
470
</varlistentry>
406
-
<varlistentry>
471
+
<varlistentry xml:id="constant.filter-flag-encode-high">
407
472
<term>
408
473
<constant>FILTER_FLAG_ENCODE_HIGH</constant>
409
-
(<type>integer</type>)
474
+
(<type>int</type>)
410
475
</term>
411
476
<listitem>
412
477
<simpara>
...
...
@@ -414,10 +479,10 @@
414
479
</simpara>
415
480
</listitem>
416
481
</varlistentry>
417
-
<varlistentry>
482
+
<varlistentry xml:id="constant.filter-flag-encode-amp">
418
483
<term>
419
484
<constant>FILTER_FLAG_ENCODE_AMP</constant>
420
-
(<type>integer</type>)
485
+
(<type>int</type>)
421
486
</term>
422
487
<listitem>
423
488
<simpara>
...
...
@@ -425,10 +490,10 @@
425
490
</simpara>
426
491
</listitem>
427
492
</varlistentry>
428
-
<varlistentry>
493
+
<varlistentry xml:id="constant.filter-flag-no-encode-quotes">
429
494
<term>
430
495
<constant>FILTER_FLAG_NO_ENCODE_QUOTES</constant>
431
-
(<type>integer</type>)
496
+
(<type>int</type>)
432
497
</term>
433
498
<listitem>
434
499
<simpara>
...
...
@@ -436,10 +501,10 @@
436
501
</simpara>
437
502
</listitem>
438
503
</varlistentry>
439
-
<varlistentry>
504
+
<varlistentry xml:id="constant.filter-flag-empty-string-null">
440
505
<term>
441
506
<constant>FILTER_FLAG_EMPTY_STRING_NULL</constant>
442
-
(<type>integer</type>)
507
+
(<type>int</type>)
443
508
</term>
444
509
<listitem>
445
510
<simpara>
...
...
@@ -447,10 +512,10 @@
447
512
</simpara>
448
513
</listitem>
449
514
</varlistentry>
450
-
<varlistentry>
515
+
<varlistentry xml:id="constant.filter-flag-allow-fraction">
451
516
<term>
452
517
<constant>FILTER_FLAG_ALLOW_FRACTION</constant>
453
-
(<type>integer</type>)
518
+
(<type>int</type>)
454
519
</term>
455
520
<listitem>
456
521
<simpara>
...
...
@@ -458,10 +523,10 @@
458
523
</simpara>
459
524
</listitem>
460
525
</varlistentry>
461
-
<varlistentry>
526
+
<varlistentry xml:id="constant.filter-flag-allow-thousand">
462
527
<term>
463
528
<constant>FILTER_FLAG_ALLOW_THOUSAND</constant>
464
-
(<type>integer</type>)
529
+
(<type>int</type>)
465
530
</term>
466
531
<listitem>
467
532
<simpara>
...
...
@@ -469,10 +534,10 @@
469
534
</simpara>
470
535
</listitem>
471
536
</varlistentry>
472
-
<varlistentry>
537
+
<varlistentry xml:id="constant.filter-flag-allow-scientific">
473
538
<term>
474
539
<constant>FILTER_FLAG_ALLOW_SCIENTIFIC</constant>
475
-
(<type>integer</type>)
540
+
(<type>int</type>)
476
541
</term>
477
542
<listitem>
478
543
<simpara>
...
...
@@ -481,54 +546,69 @@
481
546
</simpara>
482
547
</listitem>
483
548
</varlistentry>
484
-
<varlistentry>
549
+
<varlistentry xml:id="constant.filter-flag-path-required">
485
550
<term>
486
-
<constant>FILTER_FLAG_SCHEME_REQUIRED</constant>
487
-
(<type>integer</type>)
551
+
<constant>FILTER_FLAG_PATH_REQUIRED</constant>
552
+
(<type>int</type>)
488
553
</term>
489
554
<listitem>
490
555
<simpara>
491
-
Require scheme in "validate_url" filter.
556
+
Require path in "validate_url" filter.
492
557
</simpara>
493
558
</listitem>
494
559
</varlistentry>
495
-
<varlistentry>
560
+
<varlistentry xml:id="constant.filter-flag-query-required">
496
561
<term>
497
-
<constant>FILTER_FLAG_HOST_REQUIRED</constant>
498
-
(<type>integer</type>)
562
+
<constant>FILTER_FLAG_QUERY_REQUIRED</constant>
563
+
(<type>int</type>)
499
564
</term>
500
565
<listitem>
501
566
<simpara>
502
-
Require host in "validate_url" filter.
567
+
Require query in "validate_url" filter.
503
568
</simpara>
504
569
</listitem>
505
570
</varlistentry>
506
-
<varlistentry>
571
+
<varlistentry xml:id="constant.filter-flag-scheme-required">
507
572
<term>
508
-
<constant>FILTER_FLAG_PATH_REQUIRED</constant>
509
-
(<type>integer</type>)
573
+
<constant>FILTER_FLAG_SCHEME_REQUIRED</constant>
574
+
(<type>int</type>)
510
575
</term>
511
576
<listitem>
512
577
<simpara>
513
-
Require path in "validate_url" filter.
578
+
Require scheme in "validate_url" filter.
579
+
(Deprecated as of PHP 7.3.0 and removed as of PHP 8.0.0, as it is implied in the filter already.)
514
580
</simpara>
515
581
</listitem>
516
582
</varlistentry>
517
-
<varlistentry>
583
+
<varlistentry xml:id="constant.filter-flag-host-required">
518
584
<term>
519
-
<constant>FILTER_FLAG_QUERY_REQUIRED</constant>
520
-
(<type>integer</type>)
585
+
<constant>FILTER_FLAG_HOST_REQUIRED</constant>
586
+
(<type>int</type>)
521
587
</term>
522
588
<listitem>
523
589
<simpara>
524
-
Require query in "validate_url" filter.
590
+
Require host in "validate_url" filter.
591
+
(Deprecated as of PHP 7.3.0 and removed as of PHP 8.0.0, as it is implied in the filter already.)
592
+
</simpara>
593
+
</listitem>
594
+
</varlistentry>
595
+
<varlistentry xml:id="constant.filter-flag-hostname">
596
+
<term>
597
+
<constant>FILTER_FLAG_HOSTNAME</constant>
598
+
(<type>int</type>)
599
+
</term>
600
+
<listitem>
601
+
<simpara>
602
+
Require hostnames to start with an alphanumeric character and contain
603
+
only alphanumerics or hyphens.
604
+
(Available as of PHP 7.0.0)
525
605
</simpara>
526
606
</listitem>
527
607
</varlistentry>
528
-
<varlistentry>
608
+
<varlistentry xml:id="constant.filter-flag-ipv4">
529
609
<term>
530
610
<constant>FILTER_FLAG_IPV4</constant>
531
-
(<type>integer</type>)
611
+
(<type>int</type>)
532
612
</term>
533
613
<listitem>
534
614
<simpara>
...
...
@@ -536,10 +616,10 @@
536
616
</simpara>
537
617
</listitem>
538
618
</varlistentry>
539
-
<varlistentry>
619
+
<varlistentry xml:id="constant.filter-flag-ipv6">
540
620
<term>
541
621
<constant>FILTER_FLAG_IPV6</constant>
542
-
(<type>integer</type>)
622
+
(<type>int</type>)
543
623
</term>
544
624
<listitem>
545
625
<simpara>
...
...
@@ -547,10 +627,10 @@
547
627
</simpara>
548
628
</listitem>
549
629
</varlistentry>
550
-
<varlistentry>
630
+
<varlistentry xml:id="constant.filter-flag-no-res-range">
551
631
<term>
552
632
<constant>FILTER_FLAG_NO_RES_RANGE</constant>
553
-
(<type>integer</type>)
633
+
(<type>int</type>)
554
634
</term>
555
635
<listitem>
556
636
<simpara>
...
...
@@ -558,10 +638,10 @@
558
638
</simpara>
559
639
</listitem>
560
640
</varlistentry>
561
-
<varlistentry>
641
+
<varlistentry xml:id="constant.filter-flag-no-priv-range">
562
642
<term>
563
643
<constant>FILTER_FLAG_NO_PRIV_RANGE</constant>
564
-
(<type>integer</type>)
644
+
(<type>int</type>)
565
645
</term>
566
646
<listitem>
567
647
<simpara>
...
...
@@ -569,9 +649,20 @@
569
649
</simpara>
570
650
</listitem>
571
651
</varlistentry>
652
+
<varlistentry xml:id="constant.filter-flag-email-unicode">
653
+
<term>
654
+
<constant>FILTER_FLAG_EMAIL_UNICODE</constant>
655
+
(<type>int</type>)
656
+
</term>
657
+
<listitem>
658
+
<simpara>
659
+
Accepts Unicode characters in the local part in "validate_email" filter.
660
+
(Available as of PHP 7.1.0)
661
+
</simpara>
662
+
</listitem>
663
+
</varlistentry>
572
664
</variablelist>
573
665
</appendix>
574
-

575
666
<!-- Keep this comment at the end of the file
576
667
Local variables:
577
668
mode: sgml
578
669