From 00f5025ff1baec5bcb3622904fd6d1203be217b8 Mon Sep 17 00:00:00 2001
From: Lukas Reschke <lukas@owncloud.com>
Date: Thu, 12 Mar 2015 18:39:54 +0100
Subject: [PATCH] Add cURL as hard-dependency

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 | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/private/util.php b/lib/private/util.php
index 72802409da..11366d450a 100644
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -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'
 			),
-- 
GitLab