Check for existence of more functions before installation

This commit is contained in:
Kijin Sung 2024-12-19 22:33:11 +09:00
parent ca99ca7f04
commit 9c68cb4e74

View file

@ -337,7 +337,7 @@ class installController extends install
} }
// Check curl // Check curl
if(function_exists('curl_init')) if(function_exists('curl_init') && function_exists('curl_exec'))
{ {
$checklist['curl'] = true; $checklist['curl'] = true;
} }
@ -347,7 +347,7 @@ class installController extends install
} }
// Check GD // Check GD
if(function_exists('imagecreatefromgif')) if(function_exists('imagecreatefromjpeg') && function_exists('imagecreatefrompng'))
{ {
$checklist['gd'] = true; $checklist['gd'] = true;
} }
@ -367,7 +367,7 @@ class installController extends install
} }
// Check json // Check json
if(function_exists('json_encode')) if(function_exists('json_encode') && function_exists('json_decode'))
{ {
$checklist['json'] = true; $checklist['json'] = true;
} }