added XML check

This commit is contained in:
Roland Gruber 2005-11-30 14:22:26 +00:00
parent d92b275128
commit 2da730b9c8
1 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,10 @@ if (! function_exists('ldap_search')) {
if (! function_exists('gettext') || !function_exists('_')) {
$criticalErrors[] = array("ERROR", "Your PHP has no gettext support!", "Please install gettext for PHP.");
}
// check if PHP has XML support
if (! function_exists('utf8_decode')) {
$criticalErrors[] = array("ERROR", "Your PHP has no XML support!", "Please install the XML extension for PHP.");
}
// check file permissions
$writableDirs = array('sess', 'tmp');
for ($i = 0; $i < sizeof($writableDirs); $i++) {