Skip to content

Commit

Permalink
Fix bug #74705 for collator_get_sort_key
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Jun 13, 2017
1 parent 5f07a89 commit 78970d5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion ext/intl/php_intl.c
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ zend_function_entry intl_functions[] = {
PHP_FE( collator_get_locale, collator_1_arg )
PHP_FE( collator_get_error_code, collator_0_args )
PHP_FE( collator_get_error_message, collator_0_args )
PHP_FE( collator_get_sort_key, collator_2_args )
PHP_FE( collator_get_sort_key, collator_1_arg )

/* formatter functions */
PHP_FE( numfmt_create, arginfo_numfmt_create )
Expand Down
1 change: 0 additions & 1 deletion ext/intl/tests/bug74705.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Bug #74705 Wrong reflection on Collator::getSortKey
--SKIPIF--
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
<?php if (version_compare(INTL_ICU_VERSION, '51.2') >= 0) die('skip for ICU < 51.2'); ?>
--FILE--
<?php
$rm = new ReflectionMethod(Collator::class, 'getSortKey');
Expand Down

0 comments on commit 78970d5

Please sign in to comment.