commit 86862c591662a68c2c2ed6e5e69921f643349939
parent 4958bc02258386c6e143ef6af6b72858ffd82309
Author: Felicitus <felicitus@felicitus.org>
Date: Fri, 23 Dec 2011 12:23:30 +0100
Check for fileinfo extensions, fixes bug #99 (curl is already being checked)
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/setup/tests/check-php-settings.php b/src/setup/tests/check-php-settings.php
@@ -13,5 +13,10 @@ if (!function_exists("curl_init")) {
echo json_encode(array("error" => true, "errormessage" => "You are missing the curl-library for PHP. Please install and activate it."));
exit;
}
+
+if (!class_exists("\\finfo")) {
+ echo json_encode(array("error" => true, "errormessage" => "You are missing the fileinfo-library for PHP. Please install and activate it."));
+ exit;
+}
echo json_encode(array("error" => false));
exit;
\ No newline at end of file