diff options
author | David M <davidmj@users.sourceforge.net> | 2007-08-14 17:55:52 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2007-08-14 17:55:52 +0000 |
commit | 4ae2e77bcbabd43b6486c0c161167defc59943a4 (patch) | |
tree | 68ac92f9d46b5c8da68298393265c2dc9536c8e7 /phpBB/develop/utf_normalizer_test.php | |
parent | 8ab583dce0d0a266eb6f229f1a6afa4b72c70803 (diff) | |
download | forums-4ae2e77bcbabd43b6486c0c161167defc59943a4.tar forums-4ae2e77bcbabd43b6486c0c161167defc59943a4.tar.gz forums-4ae2e77bcbabd43b6486c0c161167defc59943a4.tar.bz2 forums-4ae2e77bcbabd43b6486c0c161167defc59943a4.tar.xz forums-4ae2e77bcbabd43b6486c0c161167defc59943a4.zip |
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
Diffstat (limited to 'phpBB/develop/utf_normalizer_test.php')
-rw-r--r-- | phpBB/develop/utf_normalizer_test.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/develop/utf_normalizer_test.php b/phpBB/develop/utf_normalizer_test.php index 45ffaa11e9..9ad9c5869f 100644 --- a/phpBB/develop/utf_normalizer_test.php +++ b/phpBB/develop/utf_normalizer_test.php @@ -132,7 +132,8 @@ while (!feof($fp)) 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)) { @@ -196,7 +197,8 @@ while (!feof($fp)) 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); // echo "$form($utf_expected) == $utf_result\n"; |