xref: /PHP-8.4/ext/filter/filter.stub.php (revision e328c683)
1<?php
2
3/** @generate-class-entries */
4
5/**
6 * @var int
7 * @cvalue PARSE_POST
8 */
9const INPUT_POST = UNKNOWN;
10/**
11 * @var int
12 * @cvalue PARSE_GET
13 */
14const INPUT_GET = UNKNOWN;
15/**
16 * @var int
17 * @cvalue PARSE_COOKIE
18 */
19const INPUT_COOKIE = UNKNOWN;
20/**
21 * @var int
22 * @cvalue PARSE_ENV
23 */
24const INPUT_ENV = UNKNOWN;
25/**
26 * @var int
27 * @cvalue PARSE_SERVER
28 */
29const INPUT_SERVER = UNKNOWN;
30
31/**
32 * @var int
33 * @cvalue FILTER_FLAG_NONE
34 */
35const FILTER_FLAG_NONE = UNKNOWN;
36
37/**
38 * @var int
39 * @cvalue FILTER_REQUIRE_SCALAR
40 */
41const FILTER_REQUIRE_SCALAR = UNKNOWN;
42/**
43 * @var int
44 * @cvalue FILTER_REQUIRE_ARRAY
45 */
46const FILTER_REQUIRE_ARRAY = UNKNOWN;
47/**
48 * @var int
49 * @cvalue FILTER_FORCE_ARRAY
50 */
51const FILTER_FORCE_ARRAY = UNKNOWN;
52/**
53 * @var int
54 * @cvalue FILTER_NULL_ON_FAILURE
55 */
56const FILTER_NULL_ON_FAILURE = UNKNOWN;
57
58/**
59 * @var int
60 * @cvalue FILTER_VALIDATE_INT
61 */
62const FILTER_VALIDATE_INT = UNKNOWN;
63/**
64 * @var int
65 * @cvalue FILTER_VALIDATE_BOOL
66 */
67const FILTER_VALIDATE_BOOLEAN = UNKNOWN;
68/**
69 * @var int
70 * @cvalue FILTER_VALIDATE_BOOL
71 */
72const FILTER_VALIDATE_BOOL = UNKNOWN;
73/**
74 * @var int
75 * @cvalue FILTER_VALIDATE_FLOAT
76 */
77const FILTER_VALIDATE_FLOAT = UNKNOWN;
78
79/**
80 * @var int
81 * @cvalue FILTER_VALIDATE_REGEXP
82 */
83const FILTER_VALIDATE_REGEXP = UNKNOWN;
84/**
85 * @var int
86 * @cvalue FILTER_VALIDATE_DOMAIN
87 */
88const FILTER_VALIDATE_DOMAIN = UNKNOWN;
89/**
90 * @var int
91 * @cvalue FILTER_VALIDATE_URL
92 */
93const FILTER_VALIDATE_URL = UNKNOWN;
94/**
95 * @var int
96 * @cvalue FILTER_VALIDATE_EMAIL
97 */
98const FILTER_VALIDATE_EMAIL = UNKNOWN;
99/**
100 * @var int
101 * @cvalue FILTER_VALIDATE_IP
102 */
103const FILTER_VALIDATE_IP = UNKNOWN;
104/**
105 * @var int
106 * @cvalue FILTER_VALIDATE_MAC
107 */
108const FILTER_VALIDATE_MAC = UNKNOWN;
109
110/**
111 * @var int
112 * @cvalue FILTER_DEFAULT
113 */
114const FILTER_DEFAULT = UNKNOWN;
115/**
116 * @var int
117 * @cvalue FILTER_UNSAFE_RAW
118 */
119const FILTER_UNSAFE_RAW = UNKNOWN;
120
121/**
122 * @var int
123 * @cvalue FILTER_SANITIZE_STRING
124 * @deprecated
125 */
126const FILTER_SANITIZE_STRING = UNKNOWN;
127/**
128 * @var int
129 * @cvalue FILTER_SANITIZE_STRING
130 * @deprecated
131 */
132const FILTER_SANITIZE_STRIPPED = UNKNOWN;
133/**
134 * @var int
135 * @cvalue FILTER_SANITIZE_ENCODED
136 */
137const FILTER_SANITIZE_ENCODED = UNKNOWN;
138/**
139 * @var int
140 * @cvalue FILTER_SANITIZE_SPECIAL_CHARS
141 */
142const FILTER_SANITIZE_SPECIAL_CHARS = UNKNOWN;
143/**
144 * @var int
145 * @cvalue FILTER_SANITIZE_FULL_SPECIAL_CHARS
146 */
147const FILTER_SANITIZE_FULL_SPECIAL_CHARS = UNKNOWN;
148/**
149 * @var int
150 * @cvalue FILTER_SANITIZE_EMAIL
151 */
152const FILTER_SANITIZE_EMAIL = UNKNOWN;
153/**
154 * @var int
155 * @cvalue FILTER_SANITIZE_URL
156 */
157const FILTER_SANITIZE_URL = UNKNOWN;
158/**
159 * @var int
160 * @cvalue FILTER_SANITIZE_NUMBER_INT
161 */
162const FILTER_SANITIZE_NUMBER_INT = UNKNOWN;
163/**
164 * @var int
165 * @cvalue FILTER_SANITIZE_NUMBER_FLOAT
166 */
167const FILTER_SANITIZE_NUMBER_FLOAT = UNKNOWN;
168/**
169 * @var int
170 * @cvalue FILTER_SANITIZE_ADD_SLASHES
171 */
172const FILTER_SANITIZE_ADD_SLASHES = UNKNOWN;
173
174/**
175 * @var int
176 * @cvalue FILTER_CALLBACK
177 */
178const FILTER_CALLBACK = UNKNOWN;
179
180/**
181 * @var int
182 * @cvalue FILTER_FLAG_ALLOW_OCTAL
183 */
184const FILTER_FLAG_ALLOW_OCTAL = UNKNOWN;
185/**
186 * @var int
187 * @cvalue FILTER_FLAG_ALLOW_HEX
188 */
189const FILTER_FLAG_ALLOW_HEX = UNKNOWN;
190
191/**
192 * @var int
193 * @cvalue FILTER_FLAG_STRIP_LOW
194 */
195const FILTER_FLAG_STRIP_LOW = UNKNOWN;
196/**
197 * @var int
198 * @cvalue FILTER_FLAG_STRIP_HIGH
199 */
200const FILTER_FLAG_STRIP_HIGH = UNKNOWN;
201/**
202 * @var int
203 * @cvalue FILTER_FLAG_STRIP_BACKTICK
204 */
205const FILTER_FLAG_STRIP_BACKTICK = UNKNOWN;
206/**
207 * @var int
208 * @cvalue FILTER_FLAG_ENCODE_LOW
209 */
210const FILTER_FLAG_ENCODE_LOW = UNKNOWN;
211/**
212 * @var int
213 * @cvalue FILTER_FLAG_ENCODE_HIGH
214 */
215const FILTER_FLAG_ENCODE_HIGH = UNKNOWN;
216/**
217 * @var int
218 * @cvalue FILTER_FLAG_ENCODE_AMP
219 */
220const FILTER_FLAG_ENCODE_AMP = UNKNOWN;
221/**
222 * @var int
223 * @cvalue FILTER_FLAG_NO_ENCODE_QUOTES
224 */
225const FILTER_FLAG_NO_ENCODE_QUOTES = UNKNOWN;
226/**
227 * @var int
228 * @cvalue FILTER_FLAG_EMPTY_STRING_NULL
229 */
230const FILTER_FLAG_EMPTY_STRING_NULL = UNKNOWN;
231
232/**
233 * @var int
234 * @cvalue FILTER_FLAG_ALLOW_FRACTION
235 */
236const FILTER_FLAG_ALLOW_FRACTION = UNKNOWN;
237/**
238 * @var int
239 * @cvalue FILTER_FLAG_ALLOW_THOUSAND
240 */
241const FILTER_FLAG_ALLOW_THOUSAND = UNKNOWN;
242/**
243 * @var int
244 * @cvalue FILTER_FLAG_ALLOW_SCIENTIFIC
245 */
246const FILTER_FLAG_ALLOW_SCIENTIFIC = UNKNOWN;
247
248/**
249 * @var int
250 * @cvalue FILTER_FLAG_PATH_REQUIRED
251 */
252const FILTER_FLAG_PATH_REQUIRED = UNKNOWN;
253/**
254 * @var int
255 * @cvalue FILTER_FLAG_QUERY_REQUIRED
256 */
257const FILTER_FLAG_QUERY_REQUIRED = UNKNOWN;
258
259/**
260 * @var int
261 * @cvalue FILTER_FLAG_IPV4
262 */
263const FILTER_FLAG_IPV4 = UNKNOWN;
264/**
265 * @var int
266 * @cvalue FILTER_FLAG_IPV6
267 */
268const FILTER_FLAG_IPV6 = UNKNOWN;
269/**
270 * @var int
271 * @cvalue FILTER_FLAG_NO_RES_RANGE
272 */
273const FILTER_FLAG_NO_RES_RANGE = UNKNOWN;
274/**
275 * @var int
276 * @cvalue FILTER_FLAG_NO_PRIV_RANGE
277 */
278const FILTER_FLAG_NO_PRIV_RANGE = UNKNOWN;
279/**
280 * @var int
281 * @cvalue FILTER_FLAG_GLOBAL_RANGE
282 */
283const FILTER_FLAG_GLOBAL_RANGE = UNKNOWN;
284
285/**
286 * @var int
287 * @cvalue FILTER_FLAG_HOSTNAME
288 */
289const FILTER_FLAG_HOSTNAME = UNKNOWN;
290
291/**
292 * @var int
293 * @cvalue FILTER_FLAG_EMAIL_UNICODE
294 */
295const FILTER_FLAG_EMAIL_UNICODE = UNKNOWN;
296
297function filter_has_var(int $input_type, string $var_name): bool {}
298
299function filter_input(int $type, string $var_name, int $filter = FILTER_DEFAULT, array|int $options = 0): mixed {}
300
301function filter_var(mixed $value, int $filter = FILTER_DEFAULT, array|int $options = 0): mixed {}
302
303/** @refcount 1 */
304function filter_input_array(int $type, array|int $options = FILTER_DEFAULT, bool $add_empty = true): array|false|null {}
305
306/** @refcount 1 */
307function filter_var_array(array $array, array|int $options = FILTER_DEFAULT, bool $add_empty = true): array|false|null {}
308
309/**
310 * @return array<int, string>
311 * @refcount 1
312 */
313function filter_list(): array {}
314
315function filter_id(string $name): int|false {}
316