xref: /PHP-8.1/ext/intl/tests/bug62070_3.phpt (revision 74859783)
1--TEST--
2Bug #62070: Collator::getSortKey() returns garbage
3--EXTENSIONS--
4intl
5--SKIPIF--
6<?php if (version_compare(INTL_ICU_VERSION, '62.1') < 0) die('skip for ICU >= 62.1'); ?>
7--FILE--
8<?php
9$s1 = 'Hello';
10
11$coll = collator_create('en_US');
12$res = collator_get_sort_key($coll, $s1);
13
14echo urlencode($res);
15?>
16--EXPECT--
1782%40%40F%01%09%01%DC%08
18