Annotation of embedaddon/php/ext/intl/tests/bug62070.phpt, revision 1.1.1.2
1.1 misho 1: --TEST--
2: Bug #62070: Collator::getSortKey() returns garbage
3: --SKIPIF--
1.1.1.2 ! misho 4: <?php if (!extension_loaded('intl')) die('skip intl extension not enabled'); ?>
! 5: <?php if (version_compare(INTL_ICU_VERSION, '49') < 0) die('skip for ICU >= 49'); ?>
! 6: <?php if (version_compare(INTL_ICU_VERSION, '53.1') >= 0) die('skip for ICU < 53.1'); ?>
1.1 misho 7: --FILE--
8: <?php
9: $s1 = 'Hello';
10:
11: $coll = collator_create('en_US');
12: $res = collator_get_sort_key($coll, $s1);
13:
14: echo urlencode($res);
15: --EXPECT--
16: 5%2F%3D%3DC%01%09%01%8F%08
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>