Project

General

Profile

Actions

Bug #26491

closed

Fix unit test cropIsMultibyteSafe

Added by Steffen Gebert almost 13 years ago. Updated over 5 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 #1

Updated by Mr. Hudson almost 13 years ago

Patch set 1 of change If04278e3cbd01ad2f4b6b02c1b3df7cf89b251f0 has been pushed to the review server.
It is available at http://review.typo3.org/1785

Actions #2

Updated by Mr. Hudson almost 13 years ago

Patch set 2 of change If04278e3cbd01ad2f4b6b02c1b3df7cf89b251f0 has been pushed to the review server.
It is available at http://review.typo3.org/1785

Actions #3

Updated by Mr. Hudson almost 13 years ago

Patch set 1 of change Id57fab2393a651ddd72fdb46e86e71f0d70330a1 has been pushed to the review server.
It is available at http://review.typo3.org/1786

Actions #4

Updated by Steffen Gebert almost 13 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF