Skip to content

Commit 7a2543e

Browse files
committed
Some updates
1 parent f81d532 commit 7a2543e

File tree

2 files changed

+68
-73
lines changed

2 files changed

+68
-73
lines changed

ext/standard/basic_functions.stub.php

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function stream_wrapper_restore(string $protocol): bool {}
5656

5757
/* array.c */
5858

59-
function array_push(array &$stack, mixed ...$values): int {}
59+
function array_push(array &$array, mixed ...$values): int {}
6060

6161
function krsort(array &$array, int $flags = SORT_REGULAR): bool {}
6262

@@ -100,13 +100,13 @@ function pos(array|object $array): mixed {}
100100

101101
function key(array|object $array): int|string|null {}
102102

103-
function min(mixed $arg, mixed ...$args): mixed {}
103+
function min(mixed $value, mixed ...$values): mixed {}
104104

105-
function max(mixed $arg, mixed ...$args): mixed {}
105+
function max(mixed $value, mixed ...$values): mixed {}
106106

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 {}
108108

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 {}
110110

111111
function in_array(mixed $needle, array $haystack, bool $strict = false): bool {}
112112

@@ -121,7 +121,7 @@ function extract(array &$array, int $flags = EXTR_OVERWRITE, string $prefix = ""
121121
*/
122122
function compact($var_name, ...$var_names): array {}
123123

124-
function array_fill(int $start, int $length, mixed $value): array {}
124+
function array_fill(int $start, int $count, mixed $value): array {}
125125

126126
function array_fill_keys(array $keys, mixed $value): array {}
127127

@@ -231,7 +231,7 @@ function array_product(array $array): int|float {}
231231

232232
function array_reduce(array $array, callable $callback, mixed $initial = null): mixed {}
233233

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 {}
235235

236236
function array_map(?callable $callback, array $array, array ...$arrays): array {}
237237

@@ -258,18 +258,18 @@ function base64_decode(string $string, bool $strict = false): string|false {}
258258

259259
function constant(string $name): mixed {}
260260

261-
function ip2long(string $ip_address): int|false {}
261+
function ip2long(string $ip): int|false {}
262262

263-
function long2ip(int $ip_address): string|false {}
263+
function long2ip(int $ip): string|false {}
264264

265265
function getenv(?string $name = null, bool $local_only = false): string|array|false {}
266266

267267
#ifdef HAVE_PUTENV
268-
function putenv(string $setting): bool {}
268+
function putenv(string $assignment): bool {}
269269
#endif
270270

271271
/** @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 {}
273273

274274
function flush(): void {}
275275

@@ -287,7 +287,7 @@ function get_current_user(): string {}
287287

288288
function get_cfg_var(string $name): string|array|false {}
289289

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 {}
291291

292292
function error_get_last(): ?array {}
293293

@@ -355,9 +355,9 @@ function register_tick_function(callable $callback, mixed ...$args): bool {}
355355

356356
function unregister_tick_function(callable $callback): void {}
357357

358-
function is_uploaded_file(string $path): bool {}
358+
function is_uploaded_file(string $filename): bool {}
359359

360-
function move_uploaded_file(string $path, string $new_path): bool {}
360+
function move_uploaded_file(string $filename, string $new_filename): bool {}
361361

362362
function parse_ini_file(string $filename, bool $process_sections = false, int $scanner_mode = INI_SCANNER_NORMAL): array|false {}
363363

@@ -395,7 +395,7 @@ function strptime(string $timestamp, string $format): array|false {}
395395
function gethostname(): string|false {}
396396
#endif
397397

398-
function gethostbyaddr(string $ip_address): string|false {}
398+
function gethostbyaddr(string $ip): string|false {}
399399

400400
function gethostbyname(string $hostname): string {}
401401

@@ -480,19 +480,19 @@ function syslog(int $priority, string $message): bool {}
480480
#endif
481481

482482
#ifdef HAVE_INET_NTOP
483-
function inet_ntop(string $ip_address): string|false {}
483+
function inet_ntop(string $ip): string|false {}
484484
#endif
485485

486486
#ifdef HAVE_INET_PTON
487-
function inet_pton(string $ip_address): string|false {}
487+
function inet_pton(string $ip): string|false {}
488488
#endif
489489

490490
/* metaphone.c */
491491

492492
function metaphone(string $string, int $max_phonemes = 0): string {}
493493

494494
/* {{{ 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 {}
496496

497497
function header_remove(?string $name = null): void {}
498498

@@ -503,10 +503,10 @@ function setcookie(string $name, string $value = "", array|int $expires_or_optio
503503
function http_response_code(int $response_code = 0): int|bool {}
504504

505505
/**
506-
* @param string $file
506+
* @param string $filename
507507
* @param int $line
508508
*/
509-
function headers_sent(&$file = null, &$line = null): bool {}
509+
function headers_sent(&$filename = null, &$line = null): bool {}
510510

511511
function headers_list(): array {}
512512

@@ -537,9 +537,9 @@ function bin2hex(string $string): string {}
537537

538538
function hex2bin(string $string): string|false {}
539539

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 {}
541541

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 {}
543543

544544
#if HAVE_NL_LANGINFO
545545
function nl_langinfo(int $item): string|false {}
@@ -602,9 +602,9 @@ function str_ends_with(string $haystack, string $needle): bool {}
602602

603603
function chunk_split(string $string, int $length = 76, string $separator = "\r\n"): string {}
604604

605-
function substr(string $string, int $start, ?int $length = null): string {}
605+
function substr(string $string, int $offset, ?int $length = null): string {}
606606

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 {}
608608

609609
function quotemeta(string $string): string {}
610610

@@ -616,7 +616,7 @@ function ucfirst(string $string): string {}
616616

617617
function lcfirst(string $string): string {}
618618

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 {}
620620

621621
function strtr(string $string, string|array $from, ?string $to = null): string {}
622622

@@ -654,7 +654,7 @@ function setlocale(int $category, $locales, ...$rest): string|false {}
654654
/** @param array $result */
655655
function parse_str(string $string, &$result): void {}
656656

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 {}
658658

659659
function str_repeat(string $string, int $times): string {}
660660

@@ -682,7 +682,7 @@ function str_split(string $string, int $length = 1): array {}
682682

683683
function strpbrk(string $string, string $characters): string|false {}
684684

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 {}
686686

687687
function utf8_encode(string $string): string {}
688688

@@ -856,10 +856,10 @@ function unlink(string $filename, $context = null): bool {}
856856
function file_put_contents(string $filename, mixed $content, int $flags = 0, $context = null): int|false {}
857857

858858
/** @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 {}
860860

861861
/** @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 {}
863863

864864
function realpath(string $path): string|false {}
865865

0 commit comments

Comments
 (0)