Skip to content

Commit c46e113

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 aa515c4 commit c46e113

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ext/standard/basic_functions.c

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

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

ext/standard/basic_functions.stub.php

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

500500
function ini_restore(string $option): void {}
501501

502-
function ini_bytes(string $shorthand): int {}
502+
function ini_parse_quantity(string $shorthand): int {}
503503

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

ext/standard/basic_functions_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ini_restore, 0, 1, IS_VOID, 0)
504504
ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0)
505505
ZEND_END_ARG_INFO()
506506

507-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ini_bytes, 0, 1, IS_LONG, 0)
507+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ini_parse_quantity, 0, 1, IS_LONG, 0)
508508
ZEND_ARG_TYPE_INFO(0, shorthand, IS_STRING, 0)
509509
ZEND_END_ARG_INFO()
510510

0 commit comments

Comments
 (0)