Annotation of embedaddon/php/ext/intl/tests/bug62070.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #62070: Collator::getSortKey() returns garbage
                      3: --SKIPIF--
                      4: <?php
                      5: if (!extension_loaded('intl'))
                      6:        die('skip intl extension not enabled');
                      7: if (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: 
                     16: echo urlencode($res);
                     17: --EXPECT--
                     18: 5%2F%3D%3DC%01%09%01%8F%08

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>