Return to bug62070_2.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / intl / tests |
php 5.4.29
--TEST-- Bug #62070: Collator::getSortKey() returns garbage --SKIPIF-- <?php if (!extension_loaded('intl')) die('skip intl extension not enabled'); ?> <?php if (version_compare(INTL_ICU_VERSION, '53.1') < 0) die('skip for ICU >= 53.1'); ?> --FILE-- <?php $s1 = 'Hello'; $coll = collator_create('en_US'); $res = collator_get_sort_key($coll, $s1); echo urlencode($res); --EXPECT-- 71%3F%3FE%01%09%01%DC%08