xref: /PHP-8.2/ext/standard/file.stub.php (revision 76dccd82)
1<?php
2
3/** @generate-class-entries */
4
5/* file.c */
6
7/**
8 * @var int
9 * @cvalue SEEK_SET
10 */
11const SEEK_SET = UNKNOWN;
12/**
13 * @var int
14 * @cvalue SEEK_CUR
15 */
16const SEEK_CUR = UNKNOWN;
17/**
18 * @var int
19 * @cvalue SEEK_END
20 */
21const SEEK_END = UNKNOWN;
22/**
23 * @var int
24 * @cvalue PHP_LOCK_SH
25 */
26const LOCK_SH = UNKNOWN;
27/**
28 * @var int
29 * @cvalue PHP_LOCK_EX
30 */
31const LOCK_EX = UNKNOWN;
32/**
33 * @var int
34 * @cvalue PHP_LOCK_UN
35 */
36const LOCK_UN = UNKNOWN;
37/**
38 * @var int
39 * @cvalue PHP_LOCK_NB
40 */
41const LOCK_NB = UNKNOWN;
42
43/**
44 * @var int
45 * @cvalue PHP_STREAM_NOTIFY_CONNECT
46 */
47const STREAM_NOTIFY_CONNECT = UNKNOWN;
48/**
49 * @var int
50 * @cvalue PHP_STREAM_NOTIFY_AUTH_REQUIRED
51 */
52const STREAM_NOTIFY_AUTH_REQUIRED = UNKNOWN;
53/**
54 * @var int
55 * @cvalue PHP_STREAM_NOTIFY_AUTH_RESULT
56 */
57const STREAM_NOTIFY_AUTH_RESULT = UNKNOWN;
58/**
59 * @var int
60 * @cvalue PHP_STREAM_NOTIFY_MIME_TYPE_IS
61 */
62const STREAM_NOTIFY_MIME_TYPE_IS = UNKNOWN;
63/**
64 * @var int
65 * @cvalue PHP_STREAM_NOTIFY_FILE_SIZE_IS
66 */
67const STREAM_NOTIFY_FILE_SIZE_IS = UNKNOWN;
68/**
69 * @var int
70 * @cvalue PHP_STREAM_NOTIFY_REDIRECTED
71 */
72const STREAM_NOTIFY_REDIRECTED = UNKNOWN;
73/**
74 * @var int
75 * @cvalue PHP_STREAM_NOTIFY_PROGRESS
76 */
77const STREAM_NOTIFY_PROGRESS = UNKNOWN;
78/**
79 * @var int
80 * @cvalue PHP_STREAM_NOTIFY_FAILURE
81 */
82const STREAM_NOTIFY_FAILURE = UNKNOWN;
83/**
84 * @var int
85 * @cvalue PHP_STREAM_NOTIFY_COMPLETED
86 */
87const STREAM_NOTIFY_COMPLETED = UNKNOWN;
88/**
89 * @var int
90 * @cvalue PHP_STREAM_NOTIFY_RESOLVE
91 */
92const STREAM_NOTIFY_RESOLVE = UNKNOWN;
93
94/**
95 * @var int
96 * @cvalue PHP_STREAM_NOTIFY_SEVERITY_INFO
97 */
98const STREAM_NOTIFY_SEVERITY_INFO = UNKNOWN;
99/**
100 * @var int
101 * @cvalue PHP_STREAM_NOTIFY_SEVERITY_WARN
102 */
103const STREAM_NOTIFY_SEVERITY_WARN = UNKNOWN;
104/**
105 * @var int
106 * @cvalue PHP_STREAM_NOTIFY_SEVERITY_ERR
107 */
108const STREAM_NOTIFY_SEVERITY_ERR = UNKNOWN;
109
110/**
111 * @var int
112 * @cvalue PHP_STREAM_FILTER_READ
113 */
114const STREAM_FILTER_READ = UNKNOWN;
115/**
116 * @var int
117 * @cvalue PHP_STREAM_FILTER_WRITE
118 */
119const STREAM_FILTER_WRITE = UNKNOWN;
120/**
121 * @var int
122 * @cvalue PHP_STREAM_FILTER_ALL
123 */
124const STREAM_FILTER_ALL = UNKNOWN;
125
126/**
127 * @var int
128 * @cvalue PHP_STREAM_CLIENT_PERSISTENT
129 */
130const STREAM_CLIENT_PERSISTENT = UNKNOWN;
131/**
132 * @var int
133 * @cvalue PHP_STREAM_CLIENT_ASYNC_CONNECT
134 */
135const STREAM_CLIENT_ASYNC_CONNECT = UNKNOWN;
136/**
137 * @var int
138 * @cvalue PHP_STREAM_CLIENT_CONNECT
139 */
140const STREAM_CLIENT_CONNECT = UNKNOWN;
141
142/**
143 * @var int
144 * @cvalue STREAM_CRYPTO_METHOD_ANY_CLIENT
145 */
146const STREAM_CRYPTO_METHOD_ANY_CLIENT = UNKNOWN;
147/**
148 * @var int
149 * @cvalue STREAM_CRYPTO_METHOD_SSLv2_CLIENT
150 */
151const STREAM_CRYPTO_METHOD_SSLv2_CLIENT = UNKNOWN;
152/**
153 * @var int
154 * @cvalue STREAM_CRYPTO_METHOD_SSLv3_CLIENT
155 */
156const STREAM_CRYPTO_METHOD_SSLv3_CLIENT = UNKNOWN;
157/**
158 * @var int
159 * @cvalue STREAM_CRYPTO_METHOD_SSLv23_CLIENT
160 */
161const STREAM_CRYPTO_METHOD_SSLv23_CLIENT = UNKNOWN;
162/**
163 * @var int
164 * @cvalue STREAM_CRYPTO_METHOD_TLS_CLIENT
165 */
166const STREAM_CRYPTO_METHOD_TLS_CLIENT = UNKNOWN;
167/**
168 * @var int
169 * @cvalue STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT
170 */
171const STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT = UNKNOWN;
172/**
173 * @var int
174 * @cvalue STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT
175 */
176const STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT = UNKNOWN;
177/**
178 * @var int
179 * @cvalue STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT
180 */
181const STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT = UNKNOWN;
182/**
183 * @var int
184 * @cvalue STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT
185 */
186const STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT = UNKNOWN;
187/**
188 * @var int
189 * @cvalue STREAM_CRYPTO_METHOD_ANY_SERVER
190 */
191const STREAM_CRYPTO_METHOD_ANY_SERVER = UNKNOWN;
192/**
193 * @var int
194 * @cvalue STREAM_CRYPTO_METHOD_SSLv2_SERVER
195 */
196const STREAM_CRYPTO_METHOD_SSLv2_SERVER = UNKNOWN;
197/**
198 * @var int
199 * @cvalue STREAM_CRYPTO_METHOD_SSLv3_SERVER
200 */
201const STREAM_CRYPTO_METHOD_SSLv3_SERVER = UNKNOWN;
202/**
203 * @var int
204 * @cvalue STREAM_CRYPTO_METHOD_SSLv23_SERVER
205 */
206const STREAM_CRYPTO_METHOD_SSLv23_SERVER = UNKNOWN;
207/**
208 * @var int
209 * @cvalue STREAM_CRYPTO_METHOD_TLS_SERVER
210 */
211const STREAM_CRYPTO_METHOD_TLS_SERVER = UNKNOWN;
212/**
213 * @var int
214 * @cvalue STREAM_CRYPTO_METHOD_TLSv1_0_SERVER
215 */
216const STREAM_CRYPTO_METHOD_TLSv1_0_SERVER = UNKNOWN;
217/**
218 * @var int
219 * @cvalue STREAM_CRYPTO_METHOD_TLSv1_1_SERVER
220 */
221const STREAM_CRYPTO_METHOD_TLSv1_1_SERVER = UNKNOWN;
222/**
223 * @var int
224 * @cvalue STREAM_CRYPTO_METHOD_TLSv1_2_SERVER
225 */
226const STREAM_CRYPTO_METHOD_TLSv1_2_SERVER = UNKNOWN;
227/**
228 * @var int
229 * @cvalue STREAM_CRYPTO_METHOD_TLSv1_3_SERVER
230 */
231const STREAM_CRYPTO_METHOD_TLSv1_3_SERVER = UNKNOWN;
232
233/**
234 * @var int
235 * @cvalue STREAM_CRYPTO_METHOD_SSLv3_SERVER
236 */
237const STREAM_CRYPTO_PROTO_SSLv3 = UNKNOWN;
238/**
239 * @var int
240 * @cvalue STREAM_CRYPTO_METHOD_TLSv1_0_SERVER
241 */
242const STREAM_CRYPTO_PROTO_TLSv1_0 = UNKNOWN;
243/**
244 * @var int
245 * @cvalue STREAM_CRYPTO_METHOD_TLSv1_1_SERVER
246 */
247const STREAM_CRYPTO_PROTO_TLSv1_1 = UNKNOWN;
248/**
249 * @var int
250 * @cvalue STREAM_CRYPTO_METHOD_TLSv1_2_SERVER
251 */
252const STREAM_CRYPTO_PROTO_TLSv1_2 = UNKNOWN;
253/**
254 * @var int
255 * @cvalue STREAM_CRYPTO_METHOD_TLSv1_3_SERVER
256 */
257const STREAM_CRYPTO_PROTO_TLSv1_3 = UNKNOWN;
258
259/**
260 * @var int
261 * @cvalue STREAM_SHUT_RD
262 */
263const STREAM_SHUT_RD = UNKNOWN;
264/**
265 * @var int
266 * @cvalue STREAM_SHUT_WR
267 */
268const STREAM_SHUT_WR = UNKNOWN;
269/**
270 * @var int
271 * @cvalue STREAM_SHUT_RDWR
272 */
273const STREAM_SHUT_RDWR = UNKNOWN;
274
275#ifdef PF_INET
276/**
277 * @var int
278 * @cvalue PF_INET
279 */
280const STREAM_PF_INET = UNKNOWN;
281#endif
282#if (!defined(PF_INET) && defined(AF_INET))
283/**
284 * @var int
285 * @cvalue AF_INET
286 */
287const STREAM_PF_INET = UNKNOWN;
288#endif
289
290
291#ifdef HAVE_IPV6
292#ifdef PF_INET6
293/**
294 * @var int
295 * @cvalue PF_INET6
296 */
297const STREAM_PF_INET6 = UNKNOWN;
298#endif
299#if (!defined(PF_INET6) && defined(AF_INET6))
300/**
301 * @var int
302 * @cvalue AF_INET6
303 */
304const STREAM_PF_INET6 = UNKNOWN;
305#endif
306#endif
307
308#ifdef PF_UNIX
309/**
310 * @var int
311 * @cvalue PF_UNIX
312 */
313const STREAM_PF_UNIX = UNKNOWN;
314#endif
315#if (!defined(PF_UNIX) && defined(AF_UNIX))
316/**
317 * @var int
318 * @cvalue AF_UNIX
319 */
320const STREAM_PF_UNIX = UNKNOWN;
321#endif
322
323#ifdef IPPROTO_IP
324/**
325 * most people will use this one when calling socket() or socketpair()
326 * @var int
327 * @cvalue IPPROTO_IP
328 */
329const STREAM_IPPROTO_IP = UNKNOWN;
330#endif
331
332#if (defined(IPPROTO_TCP) || defined(PHP_WIN32))
333/**
334 * @var int
335 * @cvalue IPPROTO_TCP
336 */
337const STREAM_IPPROTO_TCP = UNKNOWN;
338#endif
339
340#if (defined(IPPROTO_UDP) || defined(PHP_WIN32))
341/**
342 * @var int
343 * @cvalue IPPROTO_UDP
344 */
345const STREAM_IPPROTO_UDP = UNKNOWN;
346#endif
347
348#if (defined(IPPROTO_ICMP) || defined(PHP_WIN32))
349/**
350 * @var int
351 * @cvalue IPPROTO_ICMP
352 */
353const STREAM_IPPROTO_ICMP = UNKNOWN;
354#endif
355
356#if (defined(IPPROTO_RAW) || defined(PHP_WIN32))
357/**
358 * @var int
359 * @cvalue IPPROTO_RAW
360 */
361const STREAM_IPPROTO_RAW = UNKNOWN;
362#endif
363
364/**
365 * @var int
366 * @cvalue SOCK_STREAM
367 */
368const STREAM_SOCK_STREAM = UNKNOWN;
369/**
370 * @var int
371 * @cvalue SOCK_DGRAM
372 */
373const STREAM_SOCK_DGRAM = UNKNOWN;
374
375#ifdef SOCK_RAW
376/**
377 * @var int
378 * @cvalue SOCK_RAW
379 */
380const STREAM_SOCK_RAW = UNKNOWN;
381#endif
382
383#ifdef SOCK_SEQPACKET
384/**
385 * @var int
386 * @cvalue SOCK_SEQPACKET
387 */
388const STREAM_SOCK_SEQPACKET = UNKNOWN;
389#endif
390
391#ifdef SOCK_RDM
392/**
393 * @var int
394 * @cvalue SOCK_RDM
395 */
396const STREAM_SOCK_RDM = UNKNOWN;
397#endif
398
399/**
400 * @var int
401 * @cvalue STREAM_PEEK
402 */
403const STREAM_PEEK = UNKNOWN;
404/**
405 * @var int
406 * @cvalue STREAM_OOB
407 */
408const STREAM_OOB = UNKNOWN;
409
410/**
411 * @var int
412 * @cvalue STREAM_XPORT_BIND
413 */
414const STREAM_SERVER_BIND = UNKNOWN;
415/**
416 * @var int
417 * @cvalue STREAM_XPORT_LISTEN
418 */
419const STREAM_SERVER_LISTEN = UNKNOWN;
420
421/**
422 * @var int
423 * @cvalue PHP_FILE_USE_INCLUDE_PATH
424 */
425const FILE_USE_INCLUDE_PATH = UNKNOWN;
426/**
427 * @var int
428 * @cvalue PHP_FILE_IGNORE_NEW_LINES
429 */
430const FILE_IGNORE_NEW_LINES = UNKNOWN;
431/**
432 * @var int
433 * @cvalue PHP_FILE_SKIP_EMPTY_LINES
434 */
435const FILE_SKIP_EMPTY_LINES = UNKNOWN;
436/**
437 * @var int
438 * @cvalue PHP_FILE_APPEND
439 */
440const FILE_APPEND = UNKNOWN;
441/**
442 * @var int
443 * @cvalue PHP_FILE_NO_DEFAULT_CONTEXT
444 */
445const FILE_NO_DEFAULT_CONTEXT = UNKNOWN;
446
447/**
448 * @var int
449 * @deprecated
450 */
451const FILE_TEXT = 0;
452/**
453 * @var int
454 * @deprecated
455 */
456const FILE_BINARY = 0;
457
458#ifdef HAVE_FNMATCH
459/**
460 * @var int
461 * @cvalue FNM_NOESCAPE
462 */
463const FNM_NOESCAPE = UNKNOWN;
464/**
465 * @var int
466 * @cvalue FNM_PATHNAME
467 */
468const FNM_PATHNAME = UNKNOWN;
469/**
470 * @var int
471 * @cvalue FNM_PERIOD
472 */
473const FNM_PERIOD = UNKNOWN;
474#ifdef FNM_CASEFOLD
475/**
476 * A GNU extension
477 * @var int
478 * @cvalue FNM_CASEFOLD
479 */
480const FNM_CASEFOLD = UNKNOWN; // TODO emulate if not available
481#endif
482#endif
483