xref: /PHP-8.4/ext/intl/tests/bug62070_2.phpt (revision 74859783)
1--TEST--
2Bug #62070: Collator::getSortKey() returns garbage
3--EXTENSIONS--
4intl
5--SKIPIF--
6<?php if (version_compare(INTL_ICU_VERSION, '53.1') < 0) die('skip for ICU >= 53.1'); ?>
7<?php if (version_compare(INTL_ICU_VERSION, '62.1') >=  0) die('skip for ICU < 62.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--
1871%3F%3FE%01%09%01%DC%08
19