reference/filter/constants.xml
5e9500ddad6dbc2f1b01d7da8b53379c8b7c386c
...
...
@@ -8,7 +8,7 @@
8
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>
...
...
@@ -19,7 +19,7 @@
19
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>
...
...
@@ -30,7 +30,7 @@
30
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>
...
...
@@ -41,7 +41,7 @@
41
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>
...
...
@@ -52,7 +52,7 @@
52
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>
...
...
@@ -63,7 +63,7 @@
63
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>
...
...
@@ -75,7 +75,7 @@
75
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>
...
...
@@ -87,7 +87,7 @@
87
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>
...
...
@@ -98,7 +98,7 @@
98
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>
...
...
@@ -109,7 +109,7 @@
109
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>
...
...
@@ -120,7 +120,7 @@
120
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>
...
...
@@ -131,7 +131,7 @@
131
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>
...
...
@@ -142,7 +142,7 @@
142
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 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>
153
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>
...
...
@@ -164,7 +175,7 @@
164
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>
...
...
@@ -175,7 +186,7 @@
175
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>
...
...
@@ -186,7 +197,7 @@
186
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>
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>
197
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>
...
...
@@ -208,7 +231,7 @@
208
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>
...
...
@@ -219,19 +242,18 @@
219
242
<varlistentry xml:id="constant.filter-validate-mac">
220
243
<term>
221
244
<constant>FILTER_VALIDATE_MAC</constant>
222
-
(<type>integer</type>)
245
+
(<type>int</type>)
223
246
</term>
224
247
<listitem>
225
248
<simpara>
226
249
ID of "validate_mac_address" filter.
227
-
(Available as of PHP 5.5.0)
228
250
</simpara>
229
251
</listitem>
230
252
</varlistentry>
231
253
<varlistentry xml:id="constant.filter-default">
232
254
<term>
233
255
<constant>FILTER_DEFAULT</constant>
234
-
(<type>integer</type>)
256
+
(<type>int</type>)
235
257
</term>
236
258
<listitem>
237
259
<simpara>
...
...
@@ -243,7 +265,7 @@
243
265
<varlistentry xml:id="constant.filter-unsafe-raw">
244
266
<term>
245
267
<constant>FILTER_UNSAFE_RAW</constant>
246
-
(<type>integer</type>)
268
+
(<type>int</type>)
247
269
</term>
248
270
<listitem>
249
271
<simpara>
...
...
@@ -254,29 +276,33 @@
254
276
<varlistentry xml:id="constant.filter-sanitize-string">
255
277
<term>
256
278
<constant>FILTER_SANITIZE_STRING</constant>
257
-
(<type>integer</type>)
279
+
(<type>int</type>)
258
280
</term>
259
281
<listitem>
260
282
<simpara>
261
283
ID of "string" filter.
284
+
(<emphasis>Deprecated</emphasis> as of PHP 8.1.0,
285
+
use <function>htmlspecialchars</function> instead.)
262
286
</simpara>
263
287
</listitem>
264
288
</varlistentry>
265
289
<varlistentry xml:id="constant.filter-sanitize-stripped">
266
290
<term>
267
291
<constant>FILTER_SANITIZE_STRIPPED</constant>
268
-
(<type>integer</type>)
292
+
(<type>int</type>)
269
293
</term>
270
294
<listitem>
271
295
<simpara>
272
296
ID of "stripped" filter.
297
+
(<emphasis>Deprecated</emphasis> as of PHP 8.1.0,
298
+
use <function>htmlspecialchars</function> instead.)
273
299
</simpara>
274
300
</listitem>
275
301
</varlistentry>
276
302
<varlistentry xml:id="constant.filter-sanitize-encoded">
277
303
<term>
278
304
<constant>FILTER_SANITIZE_ENCODED</constant>
279
-
(<type>integer</type>)
305
+
(<type>int</type>)
280
306
</term>
281
307
<listitem>
282
308
<simpara>
...
...
@@ -287,7 +313,7 @@
287
313
<varlistentry xml:id="constant.filter-sanitize-special-chars">
288
314
<term>
289
315
<constant>FILTER_SANITIZE_SPECIAL_CHARS</constant>
290
-
(<type>integer</type>)
316
+
(<type>int</type>)
291
317
</term>
292
318
<listitem>
293
319
<simpara>
...
...
@@ -298,7 +324,7 @@
298
324
<varlistentry xml:id="constant.filter-sanitize-email">
299
325
<term>
300
326
<constant>FILTER_SANITIZE_EMAIL</constant>
301
-
(<type>integer</type>)
327
+
(<type>int</type>)
302
328
</term>
303
329
<listitem>
304
330
<simpara>
...
...
@@ -309,7 +335,7 @@
309
335
<varlistentry xml:id="constant.filter-sanitize-url">
310
336
<term>
311
337
<constant>FILTER_SANITIZE_URL</constant>
312
-
(<type>integer</type>)
338
+
(<type>int</type>)
313
339
</term>
314
340
<listitem>
315
341
<simpara>
...
...
@@ -320,7 +346,7 @@
320
346
<varlistentry xml:id="constant.filter-sanitize-number-int">
321
347
<term>
322
348
<constant>FILTER_SANITIZE_NUMBER_INT</constant>
323
-
(<type>integer</type>)
349
+
(<type>int</type>)
324
350
</term>
325
351
<listitem>
326
352
<simpara>
...
...
@@ -331,7 +357,7 @@
331
357
<varlistentry xml:id="constant.filter-sanitize-number-float">
332
358
<term>
333
359
<constant>FILTER_SANITIZE_NUMBER_FLOAT</constant>
334
-
(<type>integer</type>)
360
+
(<type>int</type>)
335
361
</term>
336
362
<listitem>
337
363
<simpara>
...
...
@@ -342,18 +368,33 @@
342
368
<varlistentry xml:id="constant.filter-sanitize-magic-quotes">
343
369
<term>
344
370
<constant>FILTER_SANITIZE_MAGIC_QUOTES</constant>
345
-
(<type>integer</type>)
371
+
(<type>int</type>)
346
372
</term>
347
373
<listitem>
348
374
<simpara>
349
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)
350
391
</simpara>
351
392
</listitem>
352
393
</varlistentry>
353
394
<varlistentry xml:id="constant.filter-callback">
354
395
<term>
355
396
<constant>FILTER_CALLBACK</constant>
356
-
(<type>integer</type>)
397
+
(<type>int</type>)
357
398
</term>
358
399
<listitem>
359
400
<simpara>
...
...
@@ -364,7 +405,7 @@
364
405
<varlistentry xml:id="constant.filter-flag-allow-octal">
365
406
<term>
366
407
<constant>FILTER_FLAG_ALLOW_OCTAL</constant>
367
-
(<type>integer</type>)
408
+
(<type>int</type>)
368
409
</term>
369
410
<listitem>
370
411
<simpara>
...
...
@@ -375,7 +416,7 @@
375
416
<varlistentry xml:id="constant.filter-flag-allow-hex">
376
417
<term>
377
418
<constant>FILTER_FLAG_ALLOW_HEX</constant>
378
-
(<type>integer</type>)
419
+
(<type>int</type>)
379
420
</term>
380
421
<listitem>
381
422
<simpara>
...
...
@@ -386,7 +427,7 @@
386
427
<varlistentry xml:id="constant.filter-flag-strip-low">
387
428
<term>
388
429
<constant>FILTER_FLAG_STRIP_LOW</constant>
389
-
(<type>integer</type>)
430
+
(<type>int</type>)
390
431
</term>
391
432
<listitem>
392
433
<simpara>
...
...
@@ -397,7 +438,7 @@
397
438
<varlistentry xml:id="constant.filter-flag-strip-high">
398
439
<term>
399
440
<constant>FILTER_FLAG_STRIP_HIGH</constant>
400
-
(<type>integer</type>)
441
+
(<type>int</type>)
401
442
</term>
402
443
<listitem>
403
444
<simpara>
...
...
@@ -405,10 +446,21 @@
405
446
</simpara>
406
447
</listitem>
407
448
</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>
408
460
<varlistentry xml:id="constant.filter-flag-encode-low">
409
461
<term>
410
462
<constant>FILTER_FLAG_ENCODE_LOW</constant>
411
-
(<type>integer</type>)
463
+
(<type>int</type>)
412
464
</term>
413
465
<listitem>
414
466
<simpara>
...
...
@@ -419,7 +471,7 @@
419
471
<varlistentry xml:id="constant.filter-flag-encode-high">
420
472
<term>
421
473
<constant>FILTER_FLAG_ENCODE_HIGH</constant>
422
-
(<type>integer</type>)
474
+
(<type>int</type>)
423
475
</term>
424
476
<listitem>
425
477
<simpara>
...
...
@@ -430,7 +482,7 @@
430
482
<varlistentry xml:id="constant.filter-flag-encode-amp">
431
483
<term>
432
484
<constant>FILTER_FLAG_ENCODE_AMP</constant>
433
-
(<type>integer</type>)
485
+
(<type>int</type>)
434
486
</term>
435
487
<listitem>
436
488
<simpara>
...
...
@@ -441,7 +493,7 @@
441
493
<varlistentry xml:id="constant.filter-flag-no-encode-quotes">
442
494
<term>
443
495
<constant>FILTER_FLAG_NO_ENCODE_QUOTES</constant>
444
-
(<type>integer</type>)
496
+
(<type>int</type>)
445
497
</term>
446
498
<listitem>
447
499
<simpara>
...
...
@@ -452,7 +504,7 @@
452
504
<varlistentry xml:id="constant.filter-flag-empty-string-null">
453
505
<term>
454
506
<constant>FILTER_FLAG_EMPTY_STRING_NULL</constant>
455
-
(<type>integer</type>)
507
+
(<type>int</type>)
456
508
</term>
457
509
<listitem>
458
510
<simpara>
...
...
@@ -463,7 +515,7 @@
463
515
<varlistentry xml:id="constant.filter-flag-allow-fraction">
464
516
<term>
465
517
<constant>FILTER_FLAG_ALLOW_FRACTION</constant>
466
-
(<type>integer</type>)
518
+
(<type>int</type>)
467
519
</term>
468
520
<listitem>
469
521
<simpara>
...
...
@@ -474,7 +526,7 @@
474
526
<varlistentry xml:id="constant.filter-flag-allow-thousand">
475
527
<term>
476
528
<constant>FILTER_FLAG_ALLOW_THOUSAND</constant>
477
-
(<type>integer</type>)
529
+
(<type>int</type>)
478
530
</term>
479
531
<listitem>
480
532
<simpara>
...
...
@@ -485,7 +537,7 @@
485
537
<varlistentry xml:id="constant.filter-flag-allow-scientific">
486
538
<term>
487
539
<constant>FILTER_FLAG_ALLOW_SCIENTIFIC</constant>
488
-
(<type>integer</type>)
540
+
(<type>int</type>)
489
541
</term>
490
542
<listitem>
491
543
<simpara>
...
...
@@ -497,7 +549,7 @@
497
549
<varlistentry xml:id="constant.filter-flag-path-required">
498
550
<term>
499
551
<constant>FILTER_FLAG_PATH_REQUIRED</constant>
500
-
(<type>integer</type>)
552
+
(<type>int</type>)
501
553
</term>
502
554
<listitem>
503
555
<simpara>
...
...
@@ -508,7 +560,7 @@
508
560
<varlistentry xml:id="constant.filter-flag-query-required">
509
561
<term>
510
562
<constant>FILTER_FLAG_QUERY_REQUIRED</constant>
511
-
(<type>integer</type>)
563
+
(<type>int</type>)
512
564
</term>
513
565
<listitem>
514
566
<simpara>
...
...
@@ -516,10 +568,47 @@
516
568
</simpara>
517
569
</listitem>
518
570
</varlistentry>
571
+
<varlistentry xml:id="constant.filter-flag-scheme-required">
572
+
<term>
573
+
<constant>FILTER_FLAG_SCHEME_REQUIRED</constant>
574
+
(<type>int</type>)
575
+
</term>
576
+
<listitem>
577
+
<simpara>
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.)
580
+
</simpara>
581
+
</listitem>
582
+
</varlistentry>
583
+
<varlistentry xml:id="constant.filter-flag-host-required">
584
+
<term>
585
+
<constant>FILTER_FLAG_HOST_REQUIRED</constant>
586
+
(<type>int</type>)
587
+
</term>
588
+
<listitem>
589
+
<simpara>
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)
605
+
</simpara>
606
+
</listitem>
607
+
</varlistentry>
519
608
<varlistentry xml:id="constant.filter-flag-ipv4">
520
609
<term>
521
610
<constant>FILTER_FLAG_IPV4</constant>
522
-
(<type>integer</type>)
611
+
(<type>int</type>)
523
612
</term>
524
613
<listitem>
525
614
<simpara>
...
...
@@ -530,7 +619,7 @@
530
619
<varlistentry xml:id="constant.filter-flag-ipv6">
531
620
<term>
532
621
<constant>FILTER_FLAG_IPV6</constant>
533
-
(<type>integer</type>)
622
+
(<type>int</type>)
534
623
</term>
535
624
<listitem>
536
625
<simpara>
...
...
@@ -541,7 +630,7 @@
541
630
<varlistentry xml:id="constant.filter-flag-no-res-range">
542
631
<term>
543
632
<constant>FILTER_FLAG_NO_RES_RANGE</constant>
544
-
(<type>integer</type>)
633
+
(<type>int</type>)
545
634
</term>
546
635
<listitem>
547
636
<simpara>
...
...
@@ -552,7 +641,7 @@
552
641
<varlistentry xml:id="constant.filter-flag-no-priv-range">
553
642
<term>
554
643
<constant>FILTER_FLAG_NO_PRIV_RANGE</constant>
555
-
(<type>integer</type>)
644
+
(<type>int</type>)
556
645
</term>
557
646
<listitem>
558
647
<simpara>
...
...
@@ -560,9 +649,20 @@
560
649
</simpara>
561
650
</listitem>
562
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>
563
664
</variablelist>
564
665
</appendix>
565
-

566
666
<!-- Keep this comment at the end of the file
567
667
Local variables:
568
668
mode: sgml
569
669