Project

General

Profile

Actions

Bug #26491

closed

Fix unit test cropIsMultibyteSafe

Added by Steffen Gebert over 13 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Tests
Target version:
-
Start date:
2011-04-29
Due date:
% Done:

100%

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

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
Actions

Also available in: Atom PDF