Skip to content

Commit 502787c

Browse files
committed
update function signature
1 parent 933b81d commit 502787c

6 files changed

+8
-8
lines changed

ext/standard/array.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -4342,7 +4342,7 @@ PHP_FUNCTION(array_column)
43424342

43434343
/* {{{ Return all the values from a single column in the input array, identified by the
43444344
value_key and optionally indexed by the index_key in an indexed array */
4345-
PHP_FUNCTION(array_column_group)
4345+
PHP_FUNCTION(array_group)
43464346
{
43474347
HashTable *input;
43484348
zval *colval, *data, rv;

ext/standard/basic_functions_arginfo.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_array_column, 0, 2, IS_ARRAY, 0)
247247
ZEND_ARG_TYPE_MASK(0, index_key, MAY_BE_LONG|MAY_BE_STRING|MAY_BE_NULL, "null")
248248
ZEND_END_ARG_INFO()
249249

250-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_array_column_group, 0, 2, IS_ARRAY, 0)
250+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_array_group, 0, 2, IS_ARRAY, 0)
251251
ZEND_ARG_TYPE_INFO(0, array, IS_ARRAY, 0)
252252
ZEND_ARG_TYPE_MASK(0, column_key, MAY_BE_LONG|MAY_BE_STRING|MAY_BE_NULL, NULL)
253253
ZEND_ARG_TYPE_MASK(0, index_key, MAY_BE_LONG|MAY_BE_STRING|MAY_BE_NULL, "null")
@@ -2293,7 +2293,7 @@ ZEND_FUNCTION(array_key_last);
22932293
ZEND_FUNCTION(array_values);
22942294
ZEND_FUNCTION(array_count_values);
22952295
ZEND_FUNCTION(array_column);
2296-
ZEND_FUNCTION(array_column_group);
2296+
ZEND_FUNCTION(array_group);
22972297
ZEND_FUNCTION(array_reverse);
22982298
ZEND_FUNCTION(array_pad);
22992299
ZEND_FUNCTION(array_flip);
@@ -2922,7 +2922,7 @@ static const zend_function_entry ext_functions[] = {
29222922
ZEND_FE(array_values, arginfo_array_values)
29232923
ZEND_FE(array_count_values, arginfo_array_count_values)
29242924
ZEND_FE(array_column, arginfo_array_column)
2925-
ZEND_FE(array_column_group, arginfo_array_column_group)
2925+
ZEND_FE(array_group, arginfo_array_group)
29262926
ZEND_FE(array_reverse, arginfo_array_reverse)
29272927
ZEND_FE(array_pad, arginfo_array_pad)
29282928
ZEND_FE(array_flip, arginfo_array_flip)

ext/standard/tests/array/array_column_group_001.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $ar = [
1212
['id' => 6, 'name' => 'wael', 'score' => 'D', 's' => '1'],
1313
];
1414

15-
var_dump(array_column_group($ar, null, 'id'));
15+
var_dump(array_group($ar, null, 'id'));
1616
?>
1717
--EXPECT--
1818
array(6) {

ext/standard/tests/array/array_column_group_002.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $ar = [
1313
['id' => 6, 'name' => 'wael', 'score' => 'D', 's' => '1'],
1414
];
1515

16-
print_r(array_column_group($ar, 'name', 'score'));
16+
print_r(array_group($ar, 'name', 'score'));
1717

1818
?>
1919
--EXPECT--

ext/standard/tests/array/array_column_group_003.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $ar = [
1111
['id' => 6, 'name' => 'wael', 'score' => 'A', 's' => '3'],
1212
['id' => 6, 'name' => 'wael', 'score' => 'D', 's' => '1'],
1313
];
14-
print_r(array_column_group($ar, 'score', 's'));
14+
print_r(array_group($ar, 'score', 's'));
1515
?>
1616
--EXPECT--
1717
Array

ext/standard/tests/array/array_column_group_004.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $ar = [
1212
['id' => 6, 'name' => 'wael', 'score' => 'D', 's' => '1'],
1313
];
1414

15-
print_r(array_column_group($ar, null, 'name'));
15+
print_r(array_group($ar, null, 'name'));
1616
?>
1717
--EXPECT--
1818
Array

0 commit comments

Comments
 (0)