From 561f76df423a540d94a33179ed804872f7d6e8be Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaime=20Pe=CC=81rez?= <jaime.perez@uninett.no>
Date: Tue, 6 Sep 2016 11:17:32 +0200
Subject: [PATCH] Enhance the checks for required PHP extensions.

Added checks for Date/Time, JSON, cURL and Session.
---
 modules/core/www/frontpage_config.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/core/www/frontpage_config.php b/modules/core/www/frontpage_config.php
index 85e1d9435..3b372766b 100644
--- a/modules/core/www/frontpage_config.php
+++ b/modules/core/www/frontpage_config.php
@@ -99,13 +99,17 @@ $enablematrix = array(
 
 
 $functionchecks = array(
+	'time'             => array('required', 'Date/Time Extension'),
 	'hash'             => array('required',  'Hashing function'),
 	'gzinflate'        => array('required',  'ZLib'),
 	'openssl_sign'     => array('required',  'OpenSSL'),
 	'simplexml_import_dom' => array('required', 'SimpleXML'),
 	'dom_import_simplexml' => array('required', 'XML DOM'),
 	'preg_match'       => array('required',  'RegEx support'),
+	'json_decode'      => array('required', 'JSON support'),
+	'curl_init'        => array('optional', 'cURL (required if automatic version checks are used, also by some modules.'),
 	'mcrypt_module_open'=> array('optional',  'MCrypt (required if digital signatures or encryption are used)'),
+	'session_start'  => array('optional', 'Session Extension (required if PHP sessions are used)'),
 	'pdo_drivers'    => array('optional',  'PDO Extension (required if a database backend is used)'),
 	'memcache_debug' => array('optional', 'Memcache Extension (required if a Memcached backend is used)'),
 );
-- 
GitLab