]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add cURL as hard-dependency
authorLukas Reschke <lukas@owncloud.com>
Thu, 12 Mar 2015 17:39:54 +0000 (18:39 +0100)
committerLukas Reschke <lukas@owncloud.com>
Thu, 12 Mar 2015 17:39:54 +0000 (18:39 +0100)
It is required by other functionalities such as S2S anyways and ownCloud will fail hard at a lot of places without it.

lib/private/util.php

index 72802409da94b0a8a83b2fc1b0fc8a7efd7c93c2..11366d450a9652ba066e5b1b23794d0fde57dc3a 100644 (file)
@@ -583,7 +583,7 @@ class OC_Util {
                                'DOMDocument' => 'dom',
                                'XMLWriter' => 'XMLWriter'
                        ),
-                       'functions' => array(
+                       'functions' => [
                                'xml_parser_create' => 'libxml',
                                'mb_detect_encoding' => 'mb multibyte',
                                'ctype_digit' => 'ctype',
@@ -592,8 +592,9 @@ class OC_Util {
                                'gzencode' => 'zlib',
                                'iconv' => 'iconv',
                                'simplexml_load_string' => 'SimpleXML',
-                               'hash' => 'HASH Message Digest Framework'
-                       ),
+                               'hash' => 'HASH Message Digest Framework',
+                               'curl_init' => 'cURL',
+                       ],
                        'defined' => array(
                                'PDO::ATTR_DRIVER_NAME' => 'PDO'
                        ),