summaryrefslogtreecommitdiff
path: root/include/sanity_check.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-17 15:59:37 +0400
committerAndrew Dolgov <[email protected]>2013-03-17 15:59:37 +0400
commit8b45a5d907c8b9cc3b9d25433bc85bcd08925d4f (patch)
tree119c293ee7c989eb02740051984bee8c9828b1bf /include/sanity_check.php
parent16ad9085ea0d2f1cb031528dffcfeeda557136ce (diff)
add startup check for iconv (refs #571)
Diffstat (limited to 'include/sanity_check.php')
-rw-r--r--include/sanity_check.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sanity_check.php b/include/sanity_check.php
index 5cb556746..fcf548705 100644
--- a/include/sanity_check.php
+++ b/include/sanity_check.php
@@ -117,6 +117,10 @@
array_push($errors, "PHP support for ctype functions are required by HTMLPurifier.");
}
+ if (!function_exists("iconv")) {
+ array_push($errors, "PHP support for iconv is required to handle multiple charsets.");
+ }
+
if (ini_get("safe_mode")) {
array_push($errors, "PHP safe mode setting is not supported.");
}