Bug #19209
closedDeprecated code into stdgraphic
0%
Description
the class stdgraphic don't use the function chosen in Install Tool (between recode, iconv or mbstring), thus Typo3 crashes if we haven't recode installed on our server.
Fatal error: Call to undefined function recode_string() in /.../t3lib/class.t3lib_stdgraphic.php on line 2014
Is it possible to make a switch case there ?
(issue imported from #M9152)
Files
Updated by Benni Mack over 16 years ago
Hey Vincent,
well, pretty simple: if you choose "recode", you gotta make sure that this php extension is installed on your system. It's not a matter of having the error, more of choosing the right configuration for your system available.
What do you think?
Updated by Dmitry Dulepov over 16 years ago
Benny, the function is hard-coded in the TYPO3 code.
Updated by Dmitry Dulepov over 16 years ago
Btw, the option is deprecated from TYPO3 3.6 but the fix is very simple...
Updated by Vincent MARIANI over 16 years ago
Yes, recode was hard-coded and deprecated like you said. Since I'm not familiar with this fonction (recode). I didn't want to fix it by myself even it seems easy ;)
Your patch seems enough for the fix, doesn't it ?
Updated by Dmitry Dulepov over 16 years ago
Yes, the patch is enough. And it is now committed to 4.1, 4.2 and 4.3