Issue Bug Closed

#26491Fix unit test cropIsMultibyteSafe

Steffen Gebert 04/29/11, 12:50 updated 10/02/18, 12:20

Description

The unit test cropIsMultibyteSafe (class tslib_contentTest) fails, if error reporting includes E_WARNING. In this case mb_strlen() throws an error, as it is called with an empty string as second parameter $charset. Initializing $GLOBALS['TSFE']->renderCharset in the setUp method solves this.

PHP Warning: mb_strlen() [<a href='function.mb-strlen'>function.mb-strlen</a>]: Unknown encoding &quot;&quot; in /opt/local/apache2/vhosts/master/typo3_src/t3lib/class.t3lib_cs.php line 1533

Reviews 2