Project

General

Profile

Actions

Bug #15902

closed

Calling PHP5-only iconv functions in PHP4

Added by Ernesto Baschny about 18 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2006-03-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

A change in t3lib_cs that made it into RC2 (cvs diff -r 1.53 -r 1.54 t3lib/class.t3lib_cs.php) added some functions that are only available on PHP5 if the user chooses "iconv" (iconv_substr, iconv_strlen, iconv_strpos, iconv_strrpos). If using PHP4 with iconv support, I will get lots of errors:

Fatal error: Call to undefined function: iconv_strlen() in ....t3lib/class.t3lib_cs.php on line 1388

Attached patch checks if the functions are available before calling them.
(issue imported from #M2994)


Files

iconv-php4-typo3-4rc2.diff (2.15 KB) iconv-php4-typo3-4rc2.diff Administrator Admin, 2006-03-27 10:58
Actions

Also available in: Atom PDF