Actions
Bug #100006
closedInvalid Array Key in GraphicalFunctions
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Image Generation / GIFBUILDER
Target version:
Start date:
2023-02-21
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
When using GIFbuilder with text and breakWidth options set, the following PHP Warning appears:
PHP Warning: Undefined array key 5 in /var/www/html/web/public/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php line 1264
The issue appears in \TYPO3\CMS\Core\Imaging\GraphicalFunctions::getWordPairsForLineBreak
when trying to access $wordsArray[$index + 1]
which is not existing, in the last iteration:
Files
Actions