com php-src: Fix bug #74705 for collator_get_sort_key: ext/intl/php_intl.c ext/intl/tests/bug74705 .phpt
| From: | Remi Collet | Date: | Tue, 13 Jun 2017 06:48:17 +0000 |
| Subject: | com php-src: Fix bug #74705 for collator_get_sort_key: ext/intl/php_intl.c ext/intl/tests/bug74705 .phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-98068@lists.php.net to get a copy of this message | ||
Commit: 78970d5338e443eb19b6e589a4f6c449ca0a3d02
Author: Remi Collet <remi@php.net> Tue, 13 Jun 2017 08:48:17 +0200
Parents: 5f07a895cc340fea081938731f0c9c3b967f062f
Branches: PHP-7.0 PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=78970d5338e443eb19b6e589a4f6c449ca0a3d02
Log:
Fix bug #74705 for collator_get_sort_key
Bugs:
https://bugs.php.net/74705
Changed paths:
M ext/intl/php_intl.c
M ext/intl/tests/bug74705.phpt
Diff:
diff --git a/ext/intl/php_intl.c b/ext/intl/php_intl.c
index 787cb48...9584be7 100644
--- a/ext/intl/php_intl.c
+++ b/ext/intl/php_intl.c
@@ -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 )
diff --git a/ext/intl/tests/bug74705.phpt b/ext/intl/tests/bug74705.phpt
index f26dfe5..63a8584 100644
--- a/ext/intl/tests/bug74705.phpt
+++ b/ext/intl/tests/bug74705.phpt
@@ -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');