xref: /PHP-8.4/ext/intl/tests/bug62070_3.phpt (revision f725f504)
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<?php if (version_compare(INTL_ICU_VERSION, '76.1') >=  0) die('skip for ICU < 76.1'); ?>
8--FILE--
9<?php
10$s1 = 'Hello';
11
12$coll = collator_create('en_US');
13$res = collator_get_sort_key($coll, $s1);
14
15echo urlencode($res);
16?>
17--EXPECT--
1882%40%40F%01%09%01%DC%08
19