Download src/php/php-src/ext/intl/tests/bug62070_3.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 439 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/intl/tests/bug62070_3.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/intl/tests/bug62070_3.phpt
-
curl -L -o bug62070_3.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/intl/tests/bug62070_3.phpt
439 Bytes
| --TEST-- | |
| Bug #62070: Collator::getSortKey() returns garbage | |
| --EXTENSIONS-- | |
| intl | |
| --SKIPIF-- | |
| if (version_compare(INTL_ICU_VERSION, '62.1') < 0) die('skip for ICU >= 62.1'); | |
| if (version_compare(INTL_ICU_VERSION, '76.1') >= 0) die('skip for ICU < 76.1'); | |
| --FILE-- | |
| $s1 = 'Hello'; | |
| $coll = collator_create('en_US'); | |
| $res = collator_get_sort_key($coll, $s1); | |
| echo urlencode($res); | |
| --EXPECT-- | |
| 82%40%40F%01%09%01%DC%08 | |