Skip to content

Commit 78970d5

Browse files
committed
Fix bug #74705 for collator_get_sort_key
1 parent 5f07a89 commit 78970d5

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

ext/intl/php_intl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ zend_function_entry intl_functions[] = {
655655
PHP_FE( collator_get_locale, collator_1_arg )
656656
PHP_FE( collator_get_error_code, collator_0_args )
657657
PHP_FE( collator_get_error_message, collator_0_args )
658-
PHP_FE( collator_get_sort_key, collator_2_args )
658+
PHP_FE( collator_get_sort_key, collator_1_arg )
659659

660660
/* formatter functions */
661661
PHP_FE( numfmt_create, arginfo_numfmt_create )

ext/intl/tests/bug74705.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Bug #74705 Wrong reflection on Collator::getSortKey
33
--SKIPIF--
44
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
5-
<?php if (version_compare(INTL_ICU_VERSION, '51.2') >= 0) die('skip for ICU < 51.2'); ?>
65
--FILE--
76
<?php
87
$rm = new ReflectionMethod(Collator::class, 'getSortKey');

0 commit comments

Comments
 (0)