Index: t3lib/class.t3lib_cs.php =================================================================== RCS file: /cvsroot/typo3/TYPO3core/t3lib/class.t3lib_cs.php,v retrieving revision 1.54.2.5 diff -u -r1.54.2.5 class.t3lib_cs.php --- t3lib/class.t3lib_cs.php 22 Mar 2006 01:11:01 -0000 1.54.2.5 +++ t3lib/class.t3lib_cs.php 27 Mar 2006 08:57:24 -0000 @@ -1344,7 +1344,7 @@ else { return mb_substr($string,$start,$len,$charset); } - } elseif ($GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_utils'] == 'iconv') { + } elseif ($GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_utils'] == 'iconv' && function_exists('iconv_substr')) { // cannot omit $len, when specifying charset if ($len==null) { $enc = iconv_get_encoding('internal_encoding'); // save internal encoding @@ -1384,7 +1384,7 @@ function strlen($charset,$string) { if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_utils'] == 'mbstring') { return mb_strlen($string,$charset); - } elseif ($GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_utils'] == 'iconv') { + } elseif ($GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_utils'] == 'iconv' && function_exists('iconv_strlen')) { return iconv_strlen($string,$charset); } elseif ($charset == 'utf-8') { return $this->utf8_strlen($string); @@ -1698,7 +1698,7 @@ function utf8_strpos($haystack,$needle,$offset=0) { if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_utils'] == 'mbstring') { return mb_strpos($haystack,$needle,$offset,'utf-8'); - } elseif ($GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_utils'] == 'iconv') { + } elseif ($GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_utils'] == 'iconv' && function_exists('iconv_strpos')) { return iconv_strpos($haystack,$needle,$offset,'utf-8'); } @@ -1723,7 +1723,7 @@ function utf8_strrpos($haystack,$needle) { if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_utils'] == 'mbstring') { return mb_strrpos($haystack,$needle,'utf-8'); - } elseif ($GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_utils'] == 'iconv') { + } elseif ($GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_utils'] == 'iconv' && function_exists('iconv_strrpos')) { return iconv_strrpos($haystack,$needle,'utf-8'); }