Skip to content

Commit 7dca63b

Browse files
committed
Address review comments
1 parent 91e3dc7 commit 7dca63b

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

ext/standard/basic_functions.stub.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ function time_sleep_until(float $timestamp): bool {}
285285

286286
function get_current_user(): string {}
287287

288-
function get_cfg_var(string $setting): string|array|false {}
288+
function get_cfg_var(string $option): string|array|false {}
289289

290290
function error_log(string $message, int $message_type = 0, ?string $destination = null, ?string $additional_headers = null): bool {}
291291

@@ -312,16 +312,16 @@ function php_strip_whitespace(string $filename): string {}
312312

313313
function highlight_string(string $string, bool $return = false): string|bool {}
314314

315-
function ini_get(string $setting): string|false {}
315+
function ini_get(string $option): string|false {}
316316

317317
function ini_get_all(?string $extension = null, bool $details = true): array|false {}
318318

319-
function ini_set(string $setting, string $value): string|false {}
319+
function ini_set(string $option, string $value): string|false {}
320320

321321
/** @alias ini_set */
322-
function ini_alter(string $setting, string $value): string|false {}
322+
function ini_alter(string $option, string $value): string|false {}
323323

324-
function ini_restore(string $setting): void {}
324+
function ini_restore(string $option): void {}
325325

326326
function set_include_path(string $include_path): string|false {}
327327

@@ -1125,7 +1125,7 @@ function gettimeofday(bool $as_float = false): array|float {}
11251125
#endif
11261126

11271127
#ifdef HAVE_GETRUSAGE
1128-
function getrusage(bool $mode = false): array|false {}
1128+
function getrusage(int $mode = 0): array|false {}
11291129
#endif
11301130

11311131
/* pack.c */

ext/standard/basic_functions_arginfo.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: a3d61b801f862889b2daf926d5f21947bd72fd19 */
2+
* Stub hash: 5c7b9ed8e118be1b089af5a79b379b4cb86de5f1 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_set_time_limit, 0, 1, _IS_BOOL, 0)
55
ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0)
@@ -426,7 +426,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_current_user, 0, 0, IS_STRIN
426426
ZEND_END_ARG_INFO()
427427

428428
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_get_cfg_var, 0, 1, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_FALSE)
429-
ZEND_ARG_TYPE_INFO(0, setting, IS_STRING, 0)
429+
ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0)
430430
ZEND_END_ARG_INFO()
431431

432432
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_error_log, 0, 1, _IS_BOOL, 0)
@@ -477,7 +477,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_highlight_string, 0, 1, MAY_BE_S
477477
ZEND_END_ARG_INFO()
478478

479479
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ini_get, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
480-
ZEND_ARG_TYPE_INFO(0, setting, IS_STRING, 0)
480+
ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0)
481481
ZEND_END_ARG_INFO()
482482

483483
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ini_get_all, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
@@ -486,14 +486,14 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ini_get_all, 0, 0, MAY_BE_ARRAY|
486486
ZEND_END_ARG_INFO()
487487

488488
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ini_set, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
489-
ZEND_ARG_TYPE_INFO(0, setting, IS_STRING, 0)
489+
ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0)
490490
ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0)
491491
ZEND_END_ARG_INFO()
492492

493493
#define arginfo_ini_alter arginfo_ini_set
494494

495495
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ini_restore, 0, 1, IS_VOID, 0)
496-
ZEND_ARG_TYPE_INFO(0, setting, IS_STRING, 0)
496+
ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0)
497497
ZEND_END_ARG_INFO()
498498

499499
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_set_include_path, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
@@ -1734,7 +1734,7 @@ ZEND_END_ARG_INFO()
17341734

17351735
#if defined(HAVE_GETRUSAGE)
17361736
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_getrusage, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
1737-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, _IS_BOOL, 0, "false")
1737+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "0")
17381738
ZEND_END_ARG_INFO()
17391739
#endif
17401740

0 commit comments

Comments
 (0)