Skip to content

Commit b4b848b

Browse files
committed
Fix the signature of ini_alter()
It should be the same as ini_set()
1 parent 657cb45 commit b4b848b

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

ext/standard/basic_functions.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ function ini_get_all(?string $extension = null, bool $details = true): array|fal
329329
function ini_set(string $option, string|int|float|bool|null $value): string|false {}
330330

331331
/** @alias ini_set */
332-
function ini_alter(string $option, string $value): string|false {}
332+
function ini_alter(string $option, string|int|float|bool|null $value): string|false {}
333333

334334
function ini_restore(string $option): void {}
335335

ext/standard/basic_functions_arginfo.h

Lines changed: 2 additions & 5 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: 810b8bfbdf037702fcaec2ff81998c2bc2cefae8 */
2+
* Stub hash: 088e107c889f44d0a9762c47fce668f4d82f28ba */
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)
@@ -494,10 +494,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ini_set, 0, 2, MAY_BE_STRING|MAY
494494
ZEND_ARG_TYPE_MASK(0, value, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_BOOL|MAY_BE_NULL, NULL)
495495
ZEND_END_ARG_INFO()
496496

497-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ini_alter, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
498-
ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0)
499-
ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0)
500-
ZEND_END_ARG_INFO()
497+
#define arginfo_ini_alter arginfo_ini_set
501498

502499
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ini_restore, 0, 1, IS_VOID, 0)
503500
ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0)

0 commit comments

Comments
 (0)