aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/develop/utf_normalizer_test.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2008-05-05 00:14:46 +0000
committerNils Adermann <naderman@naderman.de>2008-05-05 00:14:46 +0000
commit2cfc6b7e0b567dca9bf361ad3a694ba071821c44 (patch)
tree4ba96d9b3fd91f1b735916079e61f36b72b7db7a /phpBB/develop/utf_normalizer_test.php
parent6871e7caa47ff928262213785f5209040fd5fca0 (diff)
downloadforums-2cfc6b7e0b567dca9bf361ad3a694ba071821c44.tar
forums-2cfc6b7e0b567dca9bf361ad3a694ba071821c44.tar.gz
forums-2cfc6b7e0b567dca9bf361ad3a694ba071821c44.tar.bz2
forums-2cfc6b7e0b567dca9bf361ad3a694ba071821c44.tar.xz
forums-2cfc6b7e0b567dca9bf361ad3a694ba071821c44.zip
fixing access to const members in the normalizer and the normalizer test
git-svn-id: file:///svn/phpbb/trunk@8550 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/develop/utf_normalizer_test.php')
-rw-r--r--phpBB/develop/utf_normalizer_test.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/develop/utf_normalizer_test.php b/phpBB/develop/utf_normalizer_test.php
index 2ce74fe833..9c4ad7f5f3 100644
--- a/phpBB/develop/utf_normalizer_test.php
+++ b/phpBB/develop/utf_normalizer_test.php
@@ -20,7 +20,7 @@ if (php_sapi_name() != 'cli')
// Remove or comment the next line (die(".... ) to enable this script.
// Do NOT FORGET to either remove this script or disable it after you have used it.
//
-die("Please read the first lines of this script for instructions on how to enable it");
+//die("Please read the first lines of this script for instructions on how to enable it");
set_time_limit(0);
error_reporting(E_ALL);
@@ -184,14 +184,14 @@ while (!feof($fp))
$utf_expected = hex_to_utf($hex_expected);
- if ($utf_expected >= UTF8_SURROGATE_FIRST
- && $utf_expected <= UTF8_SURROGATE_LAST)
+ if ($utf_expected >= utf_normalizer::UTF8_SURROGATE_FIRST
+ && $utf_expected <= utf_normalizer::UTF8_SURROGATE_LAST)
{
/**
* Surrogates are illegal on their own, we expect the normalizer
* to return a replacement char
*/
- $utf_expected = UTF8_REPLACEMENT;
+ $utf_expected = utf_normalizer::UTF8_REPLACEMENT;
$hex_expected = utf_to_hexseq($utf_expected);
}