"check for existens of dl() before calling it, thanks to report from CK"

This commit is contained in:
Ralf Becker 2009-12-01 11:24:19 +00:00
parent 54fd41a16a
commit bfd2736629

View File

@ -69,7 +69,7 @@ class translation
$this->system_charset =& $GLOBALS['egw_setup']->system_charset;
}
if (extension_loaded('mbstring') || @dl(PHP_SHLIB_PREFIX.'mbstring.'.PHP_SHLIB_SUFFIX)) {
if (extension_loaded('mbstring') || function_exists('dl') && @dl(PHP_SHLIB_PREFIX.'mbstring.'.PHP_SHLIB_SUFFIX)) {
$this->mbstring = true;
if(!empty($this->system_charset)) {
ini_set('mbstring.internal_encoding',$this->system_charset);