Project

General

Profile

Actions

Bug #99013

closed

prevent passing null to mb_strtolower in f:format.case VH

Added by Achim Fritz about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2022-11-07
Due date:
% Done:

100%

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

Description

Pass a null value to the f:format.case VH, e.g.

{nullVariable -> f:format.case(mode: 'lower')}

triggers

PHP Runtime Deprecation Notice: mb_strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/web/typo3/sysext/fluid/Classes/ViewHelpers/Format/CaseViewHelper.php line 142

(which throws an Exception if

$GLOBALS['TYPO3_CONF_VARS']['SYS']['exceptionalErrors'] = 32767;

is set)

(only for TYPO3 v11 + PHP 8.1)

Actions #1

Updated by Gerrit Code Review about 2 years ago

  • Status changed from New to Under Review

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76453

Actions #2

Updated by Gerrit Code Review about 2 years ago

Patch set 2 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76453

Actions #3

Updated by Anonymous about 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #4

Updated by Benni Mack almost 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF