mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
normalizer does not return, it works via refs. updated the normalizer test to reflect this.
git-svn-id: file:///svn/phpbb/trunk@8030 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
8ab583dce0
commit
4ae2e77bcb
1 changed files with 4 additions and 2 deletions
|
@ -132,7 +132,8 @@ while (!feof($fp))
|
||||||
|
|
||||||
foreach ($tests as $test)
|
foreach ($tests as $test)
|
||||||
{
|
{
|
||||||
$utf_result = call_user_func(array('utf_normalizer', $form), $utf_expected);
|
$utf_result = $utf_expected;
|
||||||
|
call_user_func(array('utf_normalizer', $form), $utf_result);
|
||||||
|
|
||||||
if (strcmp($utf_expected, $utf_result))
|
if (strcmp($utf_expected, $utf_result))
|
||||||
{
|
{
|
||||||
|
@ -196,7 +197,8 @@ while (!feof($fp))
|
||||||
|
|
||||||
foreach (array('nfc', 'nfkc', 'nfd', 'nfkd') as $form)
|
foreach (array('nfc', 'nfkc', 'nfd', 'nfkd') as $form)
|
||||||
{
|
{
|
||||||
$utf_result = utf_normalizer::$form($utf_expected);
|
$utf_result = $utf_expected;
|
||||||
|
utf_normalizer::$form($utf_result);
|
||||||
$hex_result = utf_to_hexseq($utf_result);
|
$hex_result = utf_to_hexseq($utf_result);
|
||||||
// echo "$form($utf_expected) == $utf_result\n";
|
// echo "$form($utf_expected) == $utf_result\n";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue