From c8b04db1fe3ad565c913b0fe6eb74ed7aa657937 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Fri, 21 Nov 2014 17:52:34 +1100 Subject: [PATCH] Fixes #119 - Add OpenSSL as a requirement, remove safe_mode (removed in php 5.4) --- modules/backend/controllers/index/_warnings.htm | 1 + modules/system/controllers/Updates.php | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/backend/controllers/index/_warnings.htm b/modules/backend/controllers/index/_warnings.htm index 0865a0c56..1723638ad 100644 --- a/modules/backend/controllers/index/_warnings.htm +++ b/modules/backend/controllers/index/_warnings.htm @@ -21,6 +21,7 @@ $requiredExtensions = [ 'fileinfo' => extension_loaded('fileinfo'), 'Zip' => class_exists('ZipArchive'), 'cURL' => function_exists('curl_init') && defined('CURLOPT_FOLLOWLOCATION'), + 'OpenSSL' => function_exists('openssl_random_pseudo_bytes'), ]; foreach ($writablePaths as $path) { diff --git a/modules/system/controllers/Updates.php b/modules/system/controllers/Updates.php index 3a7a0b433..5e35602c0 100644 --- a/modules/system/controllers/Updates.php +++ b/modules/system/controllers/Updates.php @@ -97,9 +97,7 @@ class Updates extends Controller /* * Address timeout limits */ - if (!ini_get('safe_mode')) { - set_time_limit(3600); - } + @set_time_limit(3600); $manager = UpdateManager::instance(); $stepCode = post('code');