Bug #98154
closedstdWrap.bytes without base throws exeption in PHP 8 ++
100%
Description
This throws an error:
10 = TEXT 10 { noTrimWrap = | ({file:current:extension}, |)| insertData = 1 data = file:current:size bytes = 1 // regardless of using default or custom labels #bytes.labels = iec bytes.labels = " B| KiB| MiB| GiB| TiB| PiB| EiB| ZiB| YiB" // important for PHP 8, if base is not set, the Exception below is thown #bytes.base = 1024 }
(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception
PHP Warning: Undefined array key "base" in __typo3_src/typo3_src-11.5/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php line 2085
//
ContentObjectRenderer.php line 2085
return GeneralUtility::formatSize((int)$content, $conf['bytes.']['labels'], $conf['bytes.']['base']);
Updated by Gerrit Code Review over 2 years ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75484
Updated by Gerrit Code Review over 2 years ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75484
Updated by Gerrit Code Review over 2 years ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75484
Updated by Gerrit Code Review over 2 years ago
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75484
Updated by Gerrit Code Review over 2 years ago
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/+/75519
Updated by Chris Müller over 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 23e8c8bc8587bb39d8c4a9900ee049dc36bafad0.