1--TEST-- 2Bug #62070: Collator::getSortKey() returns garbage 3--SKIPIF-- 4<?php 5if (!extension_loaded('intl')) 6 die('skip intl extension not enabled'); 7if (version_compare(INTL_ICU_VERSION, '49') < 0) 8 die('skip ICU >= 49 only'); 9--FILE-- 10<?php 11$s1 = 'Hello'; 12 13$coll = collator_create('en_US'); 14$res = collator_get_sort_key($coll, $s1); 15 16echo urlencode($res); 17--EXPECT-- 185%2F%3D%3DC%01%09%01%8F%08 19