Skip to content

Commit d9aa196

Browse files
committed
Rename function to ini_parse_quantity( $shorthand )
Of all the naming suggestions so far this one seems to fit best with the purpose of the function.
1 parent 7f626f1 commit d9aa196

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

ext/standard/basic_functions.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,8 +1969,8 @@ PHP_FUNCTION(highlight_string)
19691969
}
19701970
/* }}} */
19711971

1972-
/* {{{ Get a byte size from the ini byte size shorthand */
1973-
PHP_FUNCTION(ini_bytes)
1972+
/* {{{ Get interpreted size from the ini shorthand syntax */
1973+
PHP_FUNCTION(ini_parse_quantity)
19741974
{
19751975
char *shorthand;
19761976
size_t shorthand_len;

ext/standard/basic_functions.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ function ini_alter(string $option, string|int|float|bool|null $value): string|fa
493493

494494
function ini_restore(string $option): void {}
495495

496-
function ini_bytes(string $shorthand): int {}
496+
function ini_parse_quantity(string $shorthand): int {}
497497

498498
/** @refcount 1 */
499499
function set_include_path(string $include_path): string|false {}

ext/standard/basic_functions_arginfo.h

Lines changed: 4 additions & 4 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: d5551634e47c94d2daf3603e166ef9f7ae29bb34 */
2+
* Stub hash: bb546b06ea5b8c98064dd64cb3a1b8f04ffbf031 */
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)
@@ -500,7 +500,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ini_restore, 0, 1, IS_VOID, 0)
500500
ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0)
501501
ZEND_END_ARG_INFO()
502502

503-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ini_bytes, 0, 1, IS_LONG, 0)
503+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ini_parse_quantity, 0, 1, IS_LONG, 0)
504504
ZEND_ARG_TYPE_INFO(0, shorthand, IS_STRING, 0)
505505
ZEND_END_ARG_INFO()
506506

@@ -2361,7 +2361,7 @@ ZEND_FUNCTION(ini_get);
23612361
ZEND_FUNCTION(ini_get_all);
23622362
ZEND_FUNCTION(ini_set);
23632363
ZEND_FUNCTION(ini_restore);
2364-
ZEND_FUNCTION(ini_bytes);
2364+
ZEND_FUNCTION(ini_parse_quantity);
23652365
ZEND_FUNCTION(set_include_path);
23662366
ZEND_FUNCTION(get_include_path);
23672367
ZEND_FUNCTION(print_r);
@@ -2994,7 +2994,7 @@ static const zend_function_entry ext_functions[] = {
29942994
ZEND_FE(ini_set, arginfo_ini_set)
29952995
ZEND_FALIAS(ini_alter, ini_set, arginfo_ini_alter)
29962996
ZEND_FE(ini_restore, arginfo_ini_restore)
2997-
ZEND_FE(ini_bytes, arginfo_ini_bytes)
2997+
ZEND_FE(ini_parse_quantity, arginfo_ini_parse_quantity)
29982998
ZEND_FE(set_include_path, arginfo_set_include_path)
29992999
ZEND_FE(get_include_path, arginfo_get_include_path)
30003000
ZEND_FE(print_r, arginfo_print_r)

0 commit comments

Comments
 (0)