summaryrefslogtreecommitdiff
path: root/ext/intl/tests/bug62070.phpt
blob: a466b05c24299d5af5f56d69696540b4d26ee882 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Bug #62070: Collator::getSortKey() returns garbage
--SKIPIF--
<?php
if (!extension_loaded('intl'))
	die('skip intl extension not enabled');
--FILE--
<?php
$s1 = 'Hello';

$coll = collator_create('en_US');
$res = collator_get_sort_key($coll, $s1);

echo urlencode($res);
--EXPECT--
5%2F%3D%3DC%01%09%01%8F%08