@@ -56,7 +56,7 @@ function stream_wrapper_restore(string $protocol): bool {}
56
56
57
57
/* array.c */
58
58
59
- function array_push (array &$ stack , mixed ...$ values ): int {}
59
+ function array_push (array &$ array , mixed ...$ values ): int {}
60
60
61
61
function krsort (array &$ array , int $ flags = SORT_REGULAR ): bool {}
62
62
@@ -100,13 +100,13 @@ function pos(array|object $array): mixed {}
100
100
101
101
function key (array |object $ array ): int |string |null {}
102
102
103
- function min (mixed $ arg , mixed ...$ args ): mixed {}
103
+ function min (mixed $ value , mixed ...$ values ): mixed {}
104
104
105
- function max (mixed $ arg , mixed ...$ args ): mixed {}
105
+ function max (mixed $ value , mixed ...$ values ): mixed {}
106
106
107
- function array_walk (array |object &$ input , callable $ callback , mixed $ argument = UNKNOWN ): bool {}
107
+ function array_walk (array |object &$ array , callable $ callback , mixed $ arg = UNKNOWN ): bool {}
108
108
109
- function array_walk_recursive (array |object &$ input , callable $ callback , mixed $ argument = UNKNOWN ): bool {}
109
+ function array_walk_recursive (array |object &$ array , callable $ callback , mixed $ arg = UNKNOWN ): bool {}
110
110
111
111
function in_array (mixed $ needle , array $ haystack , bool $ strict = false ): bool {}
112
112
@@ -121,7 +121,7 @@ function extract(array &$array, int $flags = EXTR_OVERWRITE, string $prefix = ""
121
121
*/
122
122
function compact ($ var_name , ...$ var_names ): array {}
123
123
124
- function array_fill (int $ start , int $ length , mixed $ value ): array {}
124
+ function array_fill (int $ start , int $ count , mixed $ value ): array {}
125
125
126
126
function array_fill_keys (array $ keys , mixed $ value ): array {}
127
127
@@ -231,7 +231,7 @@ function array_product(array $array): int|float {}
231
231
232
232
function array_reduce (array $ array , callable $ callback , mixed $ initial = null ): mixed {}
233
233
234
- function array_filter (array $ array , ?callable $ callback = null , int $ use_keys = 0 ): array {}
234
+ function array_filter (array $ array , ?callable $ callback = null , int $ mode = 0 ): array {}
235
235
236
236
function array_map (?callable $ callback , array $ array , array ...$ arrays ): array {}
237
237
@@ -258,18 +258,18 @@ function base64_decode(string $string, bool $strict = false): string|false {}
258
258
259
259
function constant (string $ name ): mixed {}
260
260
261
- function ip2long (string $ ip_address ): int |false {}
261
+ function ip2long (string $ ip ): int |false {}
262
262
263
- function long2ip (int $ ip_address ): string |false {}
263
+ function long2ip (int $ ip ): string |false {}
264
264
265
265
function getenv (?string $ name = null , bool $ local_only = false ): string |array |false {}
266
266
267
267
#ifdef HAVE_PUTENV
268
- function putenv (string $ setting ): bool {}
268
+ function putenv (string $ assignment ): bool {}
269
269
#endif
270
270
271
271
/** @param int $rest_index */
272
- function getopt (string $ options , array $ long_options = [], &$ rest_index = null ): array |false {}
272
+ function getopt (string $ short_options , array $ long_options = [], &$ rest_index = null ): array |false {}
273
273
274
274
function flush (): void {}
275
275
@@ -287,7 +287,7 @@ function get_current_user(): string {}
287
287
288
288
function get_cfg_var (string $ name ): string |array |false {}
289
289
290
- function error_log (string $ message , int $ message_type = 0 , ?string $ destination = null , ?string $ extra_headers = null ): bool {}
290
+ function error_log (string $ message , int $ message_type = 0 , ?string $ destination = null , ?string $ additional_headers = null ): bool {}
291
291
292
292
function error_get_last (): ?array {}
293
293
@@ -355,9 +355,9 @@ function register_tick_function(callable $callback, mixed ...$args): bool {}
355
355
356
356
function unregister_tick_function (callable $ callback ): void {}
357
357
358
- function is_uploaded_file (string $ path ): bool {}
358
+ function is_uploaded_file (string $ filename ): bool {}
359
359
360
- function move_uploaded_file (string $ path , string $ new_path ): bool {}
360
+ function move_uploaded_file (string $ filename , string $ new_filename ): bool {}
361
361
362
362
function parse_ini_file (string $ filename , bool $ process_sections = false , int $ scanner_mode = INI_SCANNER_NORMAL ): array |false {}
363
363
@@ -395,7 +395,7 @@ function strptime(string $timestamp, string $format): array|false {}
395
395
function gethostname (): string |false {}
396
396
#endif
397
397
398
- function gethostbyaddr (string $ ip_address ): string |false {}
398
+ function gethostbyaddr (string $ ip ): string |false {}
399
399
400
400
function gethostbyname (string $ hostname ): string {}
401
401
@@ -480,19 +480,19 @@ function syslog(int $priority, string $message): bool {}
480
480
#endif
481
481
482
482
#ifdef HAVE_INET_NTOP
483
- function inet_ntop (string $ ip_address ): string |false {}
483
+ function inet_ntop (string $ ip ): string |false {}
484
484
#endif
485
485
486
486
#ifdef HAVE_INET_PTON
487
- function inet_pton (string $ ip_address ): string |false {}
487
+ function inet_pton (string $ ip ): string |false {}
488
488
#endif
489
489
490
490
/* metaphone.c */
491
491
492
492
function metaphone (string $ string , int $ max_phonemes = 0 ): string {}
493
493
494
494
/* {{{ head.c */
495
- function header (string $ header , bool $ replace = true , int $ http_response_code = 0 ): void {}
495
+ function header (string $ header , bool $ replace = true , int $ response_code = 0 ): void {}
496
496
497
497
function header_remove (?string $ name = null ): void {}
498
498
@@ -503,10 +503,10 @@ function setcookie(string $name, string $value = "", array|int $expires_or_optio
503
503
function http_response_code (int $ response_code = 0 ): int |bool {}
504
504
505
505
/**
506
- * @param string $file
506
+ * @param string $filename
507
507
* @param int $line
508
508
*/
509
- function headers_sent (&$ file = null , &$ line = null ): bool {}
509
+ function headers_sent (&$ filename = null , &$ line = null ): bool {}
510
510
511
511
function headers_list (): array {}
512
512
@@ -537,9 +537,9 @@ function bin2hex(string $string): string {}
537
537
538
538
function hex2bin (string $ string ): string |false {}
539
539
540
- function strspn (string $ string , string $ characters , int $ start = 0 , ?int $ length = null ): int {}
540
+ function strspn (string $ string , string $ characters , int $ offset = 0 , ?int $ length = null ): int {}
541
541
542
- function strcspn (string $ string , string $ characters , int $ start = 0 , ?int $ length = null ): int {}
542
+ function strcspn (string $ string , string $ characters , int $ offset = 0 , ?int $ length = null ): int {}
543
543
544
544
#if HAVE_NL_LANGINFO
545
545
function nl_langinfo (int $ item ): string |false {}
@@ -602,9 +602,9 @@ function str_ends_with(string $haystack, string $needle): bool {}
602
602
603
603
function chunk_split (string $ string , int $ length = 76 , string $ separator = "\r\n" ): string {}
604
604
605
- function substr (string $ string , int $ start , ?int $ length = null ): string {}
605
+ function substr (string $ string , int $ offset , ?int $ length = null ): string {}
606
606
607
- function substr_replace (array |string $ string , array |string $ replace , array |int $ start , array |int |null $ length = null ): string |array {}
607
+ function substr_replace (array |string $ string , array |string $ replace , array |int $ offset , array |int |null $ length = null ): string |array {}
608
608
609
609
function quotemeta (string $ string ): string {}
610
610
@@ -616,7 +616,7 @@ function ucfirst(string $string): string {}
616
616
617
617
function lcfirst (string $ string ): string {}
618
618
619
- function ucwords (string $ string , string $ delimiters = " \t\r\n\f\v" ): string {}
619
+ function ucwords (string $ string , string $ separators = " \t\r\n\f\v" ): string {}
620
620
621
621
function strtr (string $ string , string |array $ from , ?string $ to = null ): string {}
622
622
@@ -654,7 +654,7 @@ function setlocale(int $category, $locales, ...$rest): string|false {}
654
654
/** @param array $result */
655
655
function parse_str (string $ string , &$ result ): void {}
656
656
657
- function str_getcsv (string $ string , string $ delimiter = ", " , string $ enclosure = "\"" , string $ escape = '\\' ): array {}
657
+ function str_getcsv (string $ string , string $ separator = ", " , string $ enclosure = "\"" , string $ escape = '\\' ): array {}
658
658
659
659
function str_repeat (string $ string , int $ times ): string {}
660
660
@@ -682,7 +682,7 @@ function str_split(string $string, int $length = 1): array {}
682
682
683
683
function strpbrk (string $ string , string $ characters ): string |false {}
684
684
685
- function substr_compare (string $ main_string , string $ string , int $ offset , ?int $ length = null , bool $ case_insensitive = false ): int {}
685
+ function substr_compare (string $ haystack , string $ needle , int $ offset , ?int $ length = null , bool $ case_insensitive = false ): int {}
686
686
687
687
function utf8_encode (string $ string ): string {}
688
688
@@ -856,10 +856,10 @@ function unlink(string $filename, $context = null): bool {}
856
856
function file_put_contents (string $ filename , mixed $ content , int $ flags = 0 , $ context = null ): int |false {}
857
857
858
858
/** @param resource $stream */
859
- function fputcsv ($ stream , array $ fields , string $ delimiter = ", " , string $ enclosure = "\"" , string $ escape = "\\" ): int |false {}
859
+ function fputcsv ($ stream , array $ fields , string $ separator = ", " , string $ enclosure = "\"" , string $ escape = "\\" ): int |false {}
860
860
861
861
/** @param resource $stream */
862
- function fgetcsv ($ stream , ?int $ length = null , string $ delimiter = ", " , string $ enclosure = "\"" , string $ escape = "\\" ): array |false {}
862
+ function fgetcsv ($ stream , ?int $ length = null , string $ separator = ", " , string $ enclosure = "\"" , string $ escape = "\\" ): array |false {}
863
863
864
864
function realpath (string $ path ): string |false {}
865
865
0 commit comments