From: Frank Karlitschek Date: Sat, 6 Oct 2012 15:37:38 +0000 (+0200) Subject: check for SimpleXML which seems to bw non default on Free BSD X-Git-Tag: v4.5.0RC3~27 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5eaf95eedd842c3978173f75db1db68253dc1bc7;p=nextcloud-server.git check for SimpleXML which seems to bw non default on Free BSD --- diff --git a/lib/util.php b/lib/util.php index ae77e16c8a0..6707d67638e 100755 --- a/lib/util.php +++ b/lib/util.php @@ -287,6 +287,11 @@ class OC_Util { $errors[]=array('error'=>'PHP module zlib is not installed.
','hint'=>'Please ask your server administrator to install the module.'); $web_server_restart= false; } + + if(!function_exists('simplexml_load_string')) { + $errors[]=array('error'=>'PHP module SimpleXML is not installed.
','hint'=>'Please ask your server administrator to install the module.'); + $web_server_restart= false; + } if(floatval(phpversion())<5.3) { $errors[]=array('error'=>'PHP 5.3 is required.
','hint'=>'Please ask your server administrator to update PHP to version 5.3 or higher. PHP 5.2 is no longer supported by ownCloud and the PHP community.'); $web_server_restart= false;