XML check

This commit is contained in:
Roland Gruber 2017-08-16 19:25:53 +02:00
parent 66e89f7acd
commit e89b62c044
1 changed files with 4 additions and 1 deletions

View File

@ -76,9 +76,12 @@ if (! function_exists('openssl_x509_parse')) {
$criticalErrors[] = array("ERROR", "Your PHP has no openssl support!", "Please install openssl for PHP."); $criticalErrors[] = array("ERROR", "Your PHP has no openssl support!", "Please install openssl for PHP.");
} }
// check if PHP has XML support // check if PHP has XML support
if (! function_exists('utf8_decode')) { if (! function_exists('utf8_decode') || !extension_loaded('xml')) {
$criticalErrors[] = array("ERROR", "Your PHP has no XML support!", "Please install the XML extension for PHP."); $criticalErrors[] = array("ERROR", "Your PHP has no XML support!", "Please install the XML extension for PHP.");
} }
if (!extension_loaded('libxml')) {
$criticalErrors[] = array("ERROR", "Your PHP has no Lib XML support!", "Please install the Lib XML extension for PHP.");
}
// check if PHP has GD support // check if PHP has GD support
if (! function_exists('getimagesize')) { if (! function_exists('getimagesize')) {
$criticalErrors[] = array("ERROR", "Your PHP has no GD support!", "Please install the GD extension for PHP."); $criticalErrors[] = array("ERROR", "Your PHP has no GD support!", "Please install the GD extension for PHP.");