Add curl, json, and openssl to list of required extensions

This commit is contained in:
Kijin Sung 2016-01-04 13:05:36 +09:00
parent ca9d10ac21
commit c763bf2a93
4 changed files with 147 additions and 78 deletions

View file

@ -14,12 +14,18 @@ if(!defined('__XE__'))
// define an empty function to avoid errors when iconv function doesn't exist
if(!function_exists('iconv'))
{
eval('
function iconv($in_charset, $out_charset, $str)
function iconv($in_charset, $out_charset, $str)
{
if(function_exists('mb_convert_encoding'))
{
$out_charset = preg_replace('#//.+$#', '', $out_charset);
return mb_convert_encoding($str, $out_charset, $in_charset);
}
else
{
return $str;
}
');
}
}
/**