forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbasic_functions.stub.php
executable file
·1558 lines (963 loc) · 42.1 KB
/
basic_functions.stub.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
/** @generate-function-entries */
/* main/main.c */
function set_time_limit(int $seconds): bool {}
/* main/SAPI.c */
// TODO: Make this a proper callable argument?
function header_register_callback($callback): bool {}
/* main/output.c */
function ob_start(
$user_function = null, int $chunk_size = 0, int $flags = PHP_OUTPUT_HANDLER_STDFLAGS): bool {}
function ob_flush(): bool {}
function ob_clean(): bool {}
function ob_end_flush(): bool {}
function ob_end_clean(): bool {}
function ob_get_flush(): string|false {}
function ob_get_clean(): string|false {}
function ob_get_contents(): string|false {}
function ob_get_level(): int {}
function ob_get_length(): int|false {}
function ob_list_handlers(): array {}
function ob_get_status(bool $full_status = false): array {}
// TODO: Shouldn't this be a bool argument?
function ob_implicit_flush(int $flag = 1): void {}
function output_reset_rewrite_vars(): bool {}
function output_add_rewrite_var(string $name, string $value): bool {}
/* main/streams/userspace.c */
function stream_wrapper_register(string $protocol, string $classname, int $flags = 0): bool {}
/** @alias stream_wrapper_register */
function stream_register_wrapper(string $protocol, string $classname, int $flags = 0): bool {}
function stream_wrapper_unregister(string $protocol): bool {}
function stream_wrapper_restore(string $protocol): bool {}
/* array.c */
function array_push(array &$stack, ...$args): int {}
function krsort(array &$arg, int $sort_flags = SORT_REGULAR): bool {}
function ksort(array &$arg, int $sort_flags = SORT_REGULAR): bool {}
/** @param mixed $var */
function count($var, int $mode = COUNT_NORMAL): int {}
/**
* @param mixed $var
* @alias count
*/
function sizeof($var, int $mode = COUNT_NORMAL): int {}
function natsort(array &$arg): bool {}
function natcasesort(array &$arg): bool {}
function asort(array &$arg, int $sort_flags = SORT_REGULAR): bool {}
function arsort(array &$arg, int $sort_flags = SORT_REGULAR): bool {}
function sort(array &$arg, int $sort_flags = SORT_REGULAR): bool {}
function rsort(array &$arg, int $sort_flags = SORT_REGULAR): bool {}
function usort(array &$arg, callable $cmp_function): bool {}
function uasort(array &$arg, callable $cmp_function): bool {}
function uksort(array &$arg, callable $cmp_function): bool {}
/** @return mixed */
function end(array|object &$arg) {}
/** @return mixed */
function prev(array|object &$arg) {}
/** @return mixed */
function next(array|object &$arg) {}
/** @return mixed */
function reset(array|object &$arg) {}
/** @return mixed */
function current(array|object $arg) {}
/**
* @return mixed
* @alias current
*/
function pos(array|object $arg) {}
function key(array|object $arg): int|string|null {}
/** @return mixed */
function min($arg, ...$args) {}
/** @return mixed */
function max($arg, ...$args) {}
function array_walk(array|object &$input, callable $funcname, $userdata = UNKNOWN): bool {}
function array_walk_recursive(array|object &$input, callable $funcname, $userdata = UNKNOWN): bool {}
function in_array($needle, array $haystack, bool $strict = false): bool {}
function array_search($needle, array $haystack, bool $strict = false): int|string|false {}
/** @prefer-ref $arg */
function extract(array &$arg, int $extract_type = EXTR_OVERWRITE, string $prefix = ""): int {}
function compact($var_name, ...$var_names): array {}
function array_fill(int $start_key, int $num, $val): array {}
function array_fill_keys(array $keys, $val): array {}
/**
* @param int|float|string $low
* @param int|float|string $high
* @param int|float $step
*/
function range($low, $high, $step = 1): array {}
function shuffle(array &$arg): bool {}
/** @return mixed */
function array_pop(array &$stack) {}
/** @return mixed */
function array_shift(array &$stack) {}
function array_unshift(array &$stack, ...$vars): int {}
function array_splice(array &$arg, int $offset, ?int $length = null, $replacement = []): array {}
function array_slice(array $arg, int $offset, ?int $length = null, bool $preserve_keys = false): array {}
function array_merge(array ...$arrays): array {}
function array_merge_recursive(array ...$arrays): array {}
function array_replace(array $arr1, array ...$arrays): array {}
function array_replace_recursive(array $arr1, array ...$arrays): array {}
function array_keys(array $arg, $search_value = UNKNOWN, bool $strict = false): array {}
function array_key_first(array $arg): int|string|null {}
function array_key_last(array $arg): int|string|null {}
function array_values(array $arg): array {}
function array_count_values(array $arg): array {}
/**
* @param int|string|null $column_key
* @param int|string|null $index_key
*/
function array_column(array $arg, $column_key, $index_key = null): array {}
function array_reverse(array $input, bool $preserve_keys = false): array {}
function array_pad(array $arg, int $pad_size, $pad_value): array {}
function array_flip(array $arg): array {}
function array_change_key_case(array $input, int $case = CASE_LOWER): array {}
function array_unique(array $arg, int $flags = SORT_STRING): array {}
function array_intersect_key(array $arr1, array $arr2, array ...$arrays): array {}
function array_intersect_ukey(array $arr1, array $arr2, ...$rest): array {}
function array_intersect(array $arr1, array $arr2, array ...$arrays): array {}
function array_uintersect(array $arr1, array $arr2, ...$rest): array {}
function array_intersect_assoc(array $arr1, array $arr2, array ...$arrays): array {}
function array_uintersect_assoc(array $arr1, array $arr2, ...$rest): array {}
function array_intersect_uassoc(array $arr1, array $arr2, ...$rest): array {}
function array_uintersect_uassoc(array $arr1, array $arr2, ...$rest): array {}
function array_diff_key(array $arr1, array $arr2, array ...$arrays): array {}
function array_diff_ukey(array $arr1, array $arr2, ...$rest): array {}
function array_diff(array $arr1, array $arr2, array ...$arrays): array {}
function array_udiff(array $arr1, array $arr2, ...$rest): array {}
function array_diff_assoc(array $arr1, array $arr2, array ...$arrays): array {}
function array_diff_uassoc(array $arr1, array $arr2, ...$rest): array {}
function array_udiff_assoc(array $arr1, array $arr2, ...$rest): array {}
function array_udiff_uassoc(array $arr1, array $arr2, ...$rest): array {}
/**
* @prefer-ref $arr1
* @prefer-ref $sort_order
* @prefer-ref $sort_flags
* @prefer-ref $arr2
*/
function array_multisort(&$arr1, $sort_order = SORT_ASC, $sort_flags = SORT_REGULAR, &...$arr2): bool {}
function array_rand(array $arg, int $num_req = 1): int|string|array {}
function array_sum(array $arg): int|float {}
function array_product(array $arg): int|float {}
/** @return mixed */
function array_reduce(array $arg, callable $callback, $initial = null) {}
function array_filter(array $arg, callable $callback = UNKNOWN, int $use_keys = 0): array {}
function array_map(?callable $callback, array $arr1, array ...$arrays): array {}
/** @param mixed $key */
function array_key_exists($key, array $search): bool {}
/**
* @param mixed $key
* @alias array_key_exists
*/
function key_exists($key, array $search): bool {}
function array_chunk(array $arg, int $size, bool $preserve_keys = false): array {}
function array_combine(array $keys, array $values): array {}
/* base64.c */
function base64_encode(string $str): string {}
function base64_decode(string $str, bool $strict = false): string|false {}
/* basic_functions.c */
/** @return mixed */
function constant(string $name) {}
function ip2long(string $ip_address): int|false {}
function long2ip(int $proper_address): string|false {}
function getenv(string $variable = UNKNOWN, bool $local_only = false): string|array|false {}
#ifdef HAVE_PUTENV
function putenv(string $setting): bool {}
#endif
function getopt(string $options, array $longopts = [], &$optind = null): array|false {}
function flush(): void {}
function sleep(int $seconds): int {}
function usleep(int $microseconds): void {}
#if HAVE_NANOSLEEP
function time_nanosleep(int $seconds, int $nanoseconds): array|bool {}
function time_sleep_until(float $timestamp): bool {}
#endif
function get_current_user(): string {}
function get_cfg_var(string $option_name): string|array|false {}
function error_log(string $message, int $message_type = 0, string $destination = UNKNOWN, string $extra_headers = UNKNOWN): bool {}
function error_get_last(): ?array {}
function error_clear_last(): void {}
/**
* @param mixed ...$args
* @return mixed
*/
function call_user_func(callable $function, ...$args) {}
/** @return mixed */
function call_user_func_array(callable $function, array $args) {}
/**
* @param mixed ...$args
* @return mixed
*/
function forward_static_call(callable $function, ...$args) {}
/** @return mixed */
function forward_static_call_array(callable $function, array $args) {}
/**
* @param callable $function
* @param mixed ...$args
*/
function register_shutdown_function($function, ...$args): ?bool {}
function highlight_file(string $filename, bool $return = false): string|bool|null {}
/** @alias highlight_file */
function show_source(string $filename, bool $return = false): string|bool|null {}
function php_strip_whitespace(string $filename): string {}
function highlight_string(string $string, bool $return = false): string|bool|null {}
function ini_get(string $varname): string|false {}
function ini_get_all(?string $extension = null, bool $details = true): array|false {}
function ini_set(string $varname, string $value): string|false {}
/** @alias ini_set */
function ini_alter(string $varname, string $value): string|false {}
function ini_restore(string $varname): void {}
function set_include_path(string $include_path): string|false {}
function get_include_path(): string|false {}
/** @param mixed $var */
function print_r($var, bool $return = false): string|bool {}
function connection_aborted(): int {}
function connection_status(): int {}
function ignore_user_abort(bool $value = UNKNOWN): int {}
#if HAVE_GETSERVBYNAME
function getservbyname(string $service, string $protocol): int|false {}
#endif
#if HAVE_GETSERVBYPORT
function getservbyport(int $port, string $protocol): string|false {}
#endif
#if HAVE_GETPROTOBYNAME
function getprotobyname(string $name): int|false {}
#endif
#if HAVE_GETPROTOBYNUMBER
function getprotobynumber(int $protocol): string|false {}
#endif
/** @param mixed $args */
function register_tick_function(callable $function, ...$args): bool {}
function unregister_tick_function($function): void {}
function is_uploaded_file(string $path): bool {}
function move_uploaded_file(string $path, string $new_path): bool {}
function parse_ini_file(string $filename, bool $process_sections = false, int $scanner_mode = INI_SCANNER_NORMAL): array|false {}
function parse_ini_string(string $ini_string, bool $process_sections = false, int $scanner_mode = INI_SCANNER_NORMAL): array|false {}
#if ZEND_DEBUG
function config_get_hash(string $ini_string, bool $process_sections = false, int $scanner_mode = INI_SCANNER_NORMAL): array {}
#endif
#ifdef HAVE_GETLOADAVG
function sys_getloadavg(): array|false {}
#endif
/* browscap.c */
function get_browser(?string $browser_name = null, bool $return_array = false): object|array|false {}
/* crc32.c */
function crc32(string $str): int {}
/* crypt.c */
function crypt(string $str, string $salt = UNKNOWN): string {}
/* datetime.c */
#if HAVE_STRPTIME
function strptime(string $timestamp, string $format): array|false {}
#endif
/* dns.c */
#ifdef HAVE_GETHOSTNAME
function gethostname(): string|false {}
#endif
function gethostbyaddr(string $ip_address): string|false {}
function gethostbyname(string $hostname): string {}
function gethostbynamel(string $hostname): array|false {}
#if defined(PHP_WIN32) || HAVE_DNS_SEARCH_FUNC
function dns_check_record(string $hostname, string $type = "MX"): bool {}
/** @alias dns_check_record */
function checkdnsrr(string $hostname, string $type = "MX"): bool {}
function dns_get_record(string $hostname, int $type = DNS_ANY, &$authns = null, &$addtl = null, bool $raw = false): array|false {}
function dns_get_mx(string $hostname, &$mxhosts, &$weight = null): bool {}
/** @alias dns_get_mx */
function getmxrr(string $hostname, &$mxhosts, &$weight = null): bool {}
#endif
/* net.c */
function net_get_interfaces(): array|false {}
/* ftok.c */
#if HAVE_FTOK
function ftok(string $pathname, string $proj): int {}
#endif
/* hrtime.c */
function hrtime(bool $get_as_number = false): array|int|float|false {}
/* lcg.c */
function lcg_value(): float {}
/* md5.c */
function md5(string $str, bool $raw_output = false): string {}
function md5_file(string $filename, bool $raw_output = false): string|false {}
/* pageinfo.c */
function getmyuid(): int|false {}
function getmygid(): int|false {}
function getmypid(): int|false {}
function getmyinode(): int|false {}
function getlastmod(): int {}
/* sha1.c */
function sha1(string $str, bool $raw_output = false): string {}
function sha1_file(string $filename, bool $raw_output = false): string|false {}
/* syslog.c */
#ifdef HAVE_SYSLOG_H
function openlog(string $ident, int $option, int $facility): bool {}
function closelog(): bool {}
function syslog(int $priority, string $message): bool {}
#endif
#ifdef HAVE_INET_NTOP
function inet_ntop(string $in_addr): string|false {}
#endif
#ifdef HAVE_INET_PTON
function inet_pton(string $ip_address): string|false {}
#endif
/* metaphone.c */
function metaphone(string $text, int $phones = 0): string|false {}
/* {{{ head.c */
function header(string $string, bool $replace = true, int $http_response_code = 0): void {}
function header_remove(string $name = UNKNOWN): void {}
/** @param int|array $expires_or_options */
function setrawcookie(string $name, string $value = '', $expires_or_options = 0, string $path = '', string $domain = '', bool $secure = false, bool $httponly = false): bool {}
/** @param int|array $expires_or_options */
function setcookie(string $name, string $value = '', $expires_or_options = 0, string $path = '', string $domain = '', bool $secure = false, bool $httponly = false): bool {}
function http_response_code(int $response_code = 0): int|bool {}
function headers_sent(&$file = null, &$line = null): bool {}
function headers_list(): array {}
/* {{{ html.c */
function htmlspecialchars(string $string, int $quote_style = ENT_COMPAT, ?string $encoding = null, bool $double_encode = true): string {}
function htmlspecialchars_decode(string $string, int $quote_style = ENT_COMPAT): string|false {}
function html_entity_decode(string $string, int $quote_style = ENT_COMPAT, string $encoding = UNKNOWN): string|false {}
function htmlentities(string $string, int $quote_style = ENT_COMPAT, ?string $encoding = null, bool $double_encode = true): string {}
function get_html_translation_table(int $table = HTML_SPECIALCHARS, int $quote_style = ENT_COMPAT, string $encoding = "UTF-8"): array {}
/* }}} */
/* assert.c */
/** @param mixed $assertion */
function assert($assertion, $description = null): bool {}
function assert_options(int $what, $value = UNKNOWN): array|object|int|string|bool|null {}
/* string.c */
function bin2hex(string $data): string {}
function hex2bin(string $data): string|false {}
function strspn(string $str, string $mask, int $start = 0, int $len = UNKNOWN): int|false {}
function strcspn(string $str, string $mask, int $start = 0, int $len = UNKNOWN): int|false {}
#if HAVE_NL_LANGINFO
function nl_langinfo(int $item): string|false {}
#endif
function strcoll(string $str1, string $str2): int {}
function trim(string $str, string $character_mask = " \n\r\t\v\0"): string {}
function rtrim(string $str, string $character_mask = " \n\r\t\v\0"): string {}
/** @alias rtrim */
function chop(string $str, string $character_mask = " \n\r\t\v\0"): string {}
function ltrim(string $str, string $character_mask = " \n\r\t\v\0"): string {}
function wordwrap(string $str, int $width = 75, string $break = "\n", bool $cut = false): string {}
function explode(string $separator, string $str, int $limit = PHP_INT_MAX): array {}
function implode(string|array $glue, array $pieces = UNKNOWN): string {}
/** @alias implode */
function join(string|array $glue, array $pieces = UNKNOWN): string {}
function strtok(string $str, string $token = UNKNOWN): string|false {}
function strtoupper(string $str): string {}
function strtolower(string $str): string {}
function basename(string $path, string $suffix = ""): string {}
function dirname(string $path, int $levels = 1): string {}
function pathinfo(string $path, int $options = UNKNOWN): array|string {}
function stristr(string $haystack, string $needle, bool $before_needle = false): string|false {}
function strstr(string $haystack, string $needle, bool $before_needle = false): string|false {}
/** @alias strstr */
function strchr(string $haystack, string $needle, bool $before_needle = false): string|false {}
function strpos(string $haystack, string $needle, int $offset = 0): int|false {}
function stripos(string $haystack, string $needle, int $offset = 0): int|false {}
function strrpos(string $haystack, string $needle, int $offset = 0): int|false {}
function strripos(string $haystack, string $needle, int $offset = 0): int|false {}
function strrchr(string $haystack, string $needle): string|false {}
function str_contains(string $haystack, string $needle): bool {}
function chunk_split(string $str, int $chunklen = 76, string $ending = "\r\n"): string {}
function substr(string $str, int $start, ?int $length = null): string|false {}
/**
* @param mixed $start
* @param mixed $length
*/
function substr_replace(
string|array $str, string|array $replace, $start, $length = UNKNOWN): string|array|false {}
function quotemeta(string $str): string {}
function ord(string $character): int {}
function chr(int $codepoint): string {}
function ucfirst(string $str): string {}
function lcfirst(string $str): string {}
function ucwords(string $str, string $delimiters = " \t\r\n\f\v"): string {}
function strtr(string $str, string|array $from, string $to = UNKNOWN): string {}
function strrev(string $str): string {}
/** @param float $percent */
function similar_text(string $str1, string $str2, &$percent = null): int {}
function addcslashes(string $str, string $charlist): string {}
function addslashes(string $str): string {}
function stripcslashes(string $str): string {}
function stripslashes(string $str): string {}
/**
* @param string|array $search
* @param string|array $replace
* @param int $replace_count
*/
function str_replace(
$search, $replace, string|array $subject, &$replace_count = UNKNOWN): string|array {}
/**
* @param string|array $search
* @param string|array $replace
* @param int $replace_count
*/
function str_ireplace(
$search, $replace, string|array $subject, &$replace_count = UNKNOWN): string|array {}
function hebrev(string $str, int $max_chars_per_line = 0): string {}
function nl2br(string $str, bool $is_xhtml = true): string {}
/** @param mixed $allowable_tags */
function strip_tags(string $str, $allowable_tags = UNKNOWN): string {}
/**
* @param string|array $locales
*/
function setlocale(int $category, $locales, ...$rest): string|false {}
/** @param array $result */
function parse_str(string $encoded_string, &$result): void {}
function str_getcsv(string $string, string $delimiter = ',', string $enclosure = '"', string $escape = '\\'): array {}
function str_repeat(string $input, int $mult): string {}
function count_chars(string $input, int $mode = 0): array|string {}
function strnatcmp(string $s1, string $s2): int {}
function localeconv(): array {}
function strnatcasecmp(string $s1, string $s2): int {}
function substr_count(string $haystack, string $needle, int $offset = 0, ?int $length = null): int|false {}
function str_pad(string $input, int $pad_length, string $pad_string = " ", int $pad_type = STR_PAD_RIGHT): string {}
function sscanf(string $str, string $format, &...$vars): array|int|null {}
function str_rot13(string $str): string {}
function str_shuffle(string $str): string {}
function str_word_count(string $str, int $format = 0, string $charlist = UNKNOWN): array|int {}
function str_split(string $str, int $split_length = 1): array {}
function strpbrk(string $haystack, string $char_list): string|false {}
function substr_compare(string $main_str, string $str, int $offset, ?int $length = null, bool $case_insensitivity = false): int|false {}
function utf8_encode(string $data): string {}
function utf8_decode(string $data): string {}
/**
* @param resource $context
* @return resource|false
*/
function opendir(string $path, $context = UNKNOWN) {}
/** @param resource $context */
function getdir(string $path, $context = UNKNOWN): Directory|false {}
/**
* @param resource $context
* @alias getdir
*/
function dir(string $path, $context = UNKNOWN): Directory|false {}
/** @param resource $dir_handle */
function closedir($dir_handle = UNKNOWN): void {}
function chdir(string $directory): bool {}
#if defined(HAVE_CHROOT) && !defined(ZTS) && ENABLE_CHROOT_FUNC
function chroot(string $directory): bool {}
#endif
function getcwd(): string|false {}
/** @param resource $dir_handle */
function rewinddir($dir_handle = UNKNOWN): void {}
function readdir($dir_handle = UNKNOWN): string|false {}
/** @param resource $context */
function scandir(string $directory, int $sorting_order = 0, $context = UNKNOWN): array|false {}
#ifdef HAVE_GLOB
function glob(string $pattern, int $flags = 0): array|false {}
#endif
/* exec.c */
function exec(string $command, &$output = null, &$result_code = null): string|false {}
function system(string $command, &$result_code = null): string|false {}
function passthru(string $command, &$result_code = null): bool|null {}
function escapeshellcmd(string $command): string {}
function escapeshellarg(string $arg): string {}
function shell_exec(string $command): string|false|null {}
#ifdef HAVE_NICE
function proc_nice(int $priority): bool {}
#endif
/* file.c */
/** @param resource $handle */
function flock($handle, int $operation, &$wouldblock = null): bool {}
function get_meta_tags(string $filename, bool $use_include_path = false): array|false {}
/** @param resource $handle */
function pclose($handle): int {}
/** @return resource|false */
function popen(string $command, string $mode) {}
/** @param resource|null $context */
function readfile(string $filename, bool $use_include_path = false, $context = null): int|false {}
/** @param resource $handle */
function rewind($handle): bool {}
/** @param resource|null $context */
function rmdir(string $dirname, $context = null): bool {}
function umask(int $mask = UNKNOWN): int {}
/** @param resource $handle */
function fclose($handle): bool {}
/** @param resource $handle */
function feof($handle): bool {}
/** @param resource $handle */
function fgetc($handle): string|false {}
/** @param resource $handle */
function fgets($handle, int $length = UNKNOWN): string|false {}
/** @param resource $handle */
function fread($handle, int $length): string|false {}
/**
* @param resource|null $context
* @return resource|false
*/
function fopen(string $filename, string $mode, bool $use_include_path = false, $context = null) {}
/**
* @param resource $stream
* @param mixed ...$args
*/
function fscanf($stream, string $format, &...$args): array|int|false|null {}
/** @param resource $handle */
function fpassthru($handle): int {}
/** @param resource $handle */
function ftruncate($handle, int $size): bool {}
/** @param resource $handle */
function fstat($handle): array|false {}
/** @param resource $handle */
function fseek($handle, int $offset, int $whence = SEEK_SET): int {}
/** @param resource $handle */
function ftell($handle): int|false {}
/** @param resource $handle */
function fflush($handle): bool {}
/** @param resource $handle */
function fwrite($handle, string $content, int $max_length = UNKNOWN): int|false {}
/**
* @param resource $handle
* @alias fwrite
*/
function fputs($handle, string $content, int $max_length = UNKNOWN): int|false {}
/** @param resource|null $context */
function mkdir(string $pathname, int $mode = 0777, bool $recursive = false, $context = null): bool {}
/** @param resource|null $context */
function rename(string $oldname, string $newname, $context = null): bool {}
/** @param resource|null $context */
function copy(string $source, string $dest, $context = null): bool {}
function tempnam(string $dir, string $prefix): string|false {}
/** @return resource|false */
function tmpfile() {}
/** @param resource|null $context */
function file(string $filename, int $flags = 0, $context = null): array|false {}
/** @param resource|null $context */
function file_get_contents(string $filename, bool $use_include_path = false, $context = null, int $offset = 0, $maxlen = UNKNOWN): string|false {}
/** @param resource|null $context */
function unlink(string $filename, $context = null): bool {}
/**
* @param mixed $content
* @param resource|null $context
*/
function file_put_contents(string $filename, $content, int $flags = 0, $context = null): int|false {}
/** @param resource $handle */
function fputcsv($handle, array $fields, string $delimiter = ",", string $enclosure = "\"", string $escape = "\\"): int|false {}
/** @param resource $handle */
function fgetcsv($handle, $length = UNKNOWN, string $delimiter = ",", string $enclosure = '"', string $escape = "\\"): array|false {}
function realpath(string $path): string|false {}
#ifdef HAVE_FNMATCH
function fnmatch(string $pattern, string $filename, int $flags = 0): bool {}
#endif
function sys_get_temp_dir(): string {}
/* filestat.c */
function fileatime(string $filename): int|false {}
function filectime(string $filename): int|false {}
function filegroup(string $filename): int|false {}
function fileinode(string $filename): int|false {}
function filemtime(string $filename): int|false {}
function fileowner(string $filename): int|false {}
function fileperms(string $filename): int|false {}
function filesize(string $filename): int|false {}
function filetype(string $filename): string|false {}
function file_exists(string $filename): bool {}
function is_writable(string $filename): bool {}
/** @alias is_writable */
function is_writeable(string $filename): bool {}
function is_readable(string $filename): bool {}
function is_executable(string $filename): bool {}
function is_file(string $filename): bool {}
function is_dir(string $filename): bool {}
function is_link(string $filename): bool {}
function stat(string $filename): array|false {}
function lstat(string $filename): array|false {}
function chown(string $filename, $user): bool {}
function chgrp(string $filename, $group): bool {}
#if HAVE_LCHOWN
function lchown(string $filename, $user): bool {}
function lchgrp(string $filename, $group): bool {}
#endif
function chmod(string $filename, int $mode): bool {}
#if HAVE_UTIME
function touch(string $filename, int $time = UNKNOWN, int $atime = UNKNOWN): bool {}
#endif
function clearstatcache(bool $clear_realpath_cache = false, string $filename = ""): void {}
function disk_total_space(string $directory): float|false {}
function disk_free_space(string $directory): float|false {}
/** @alias disk_free_space */
function diskfreespace(string $directory): float|false {}
function realpath_cache_get(): array {}
function realpath_cache_size(): int {}
/* formatted_print.c */
/** @param mixed ...$args */
function sprintf(string $format, ...$args): string {}
/** @param mixed ...$args */
function printf(string $format, ...$args): int {}
/** @param mixed $args */
function vprintf(string $format, $args): int {}
/** @param mixed $args */
function vsprintf(string $format, $args): string {}
/**
* @param resource $handle
* @param mixed ...$args
*/
function fprintf($handle, string $format, ...$args): int {}
/**
* @param resource $handle
* @param mixed $args
*/
function vfprintf($handle, string $format, $args): int {}
/* fsock.c */
/** @return resource|false */
function fsockopen(string $hostname, int $port = -1, &$errno = null, &$errstr = null, float $timeout = UNKNOWN) {}
/** @return resource|false */
function pfsockopen(string $hostname, int $port = -1, &$errno = null, &$errstr = null, float $timeout = UNKNOWN) {}
/* http.c */
function http_build_query(array|object $data, string $numeric_prefix = "", $arg_separator = UNKNOWN, int $enc_type = PHP_QUERY_RFC1738): string|false {}
/* image.c */