Task #105898
closedExtension scanner should find usages of magic strings like TYPO3_MODE
100%
Description
An upgrade to TYPO3 v12 can be painful when backend or frontend
modules (or even the Database Analyzer) bails out with a white
page. Usually this would lead to inspection of logfiles,
checking if PHP's `error_reporting` or `display_errors` is
not properly set, looking for PHP/Webserver coredumps,
problems in HTTP headers, CSP errors and much more, just
to find out that a
`defined('TYPO3_MODE') or die()`
was left in some PHP file of an extension, which needs
to be replaced with `TYPO3` (see #92947 and #96107).
The Extension Scanner only scanned for the full
PHP constant usage before.
With this patch, these "magic strings" can now also
be scanned and reported, making debugging of a
malfunctioning upgrade much easier for developers
and especially integrators.
Updated by Gerrit Code Review 7 days 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/+/87660
Updated by Gerrit Code Review 7 days 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/+/87660
Updated by Garvin Hicking 7 days ago
- Related to Task #92947: Phase out TYPO3_MODE and friends added
- Related to Epic #96107: Core v12 deprecation removals added
Updated by Gerrit Code Review 7 days 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/+/87660
Updated by Gerrit Code Review 6 days 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/+/87660
Updated by Gerrit Code Review 6 days ago
Patch set 1 for branch 13.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87663
Updated by Gerrit Code Review 6 days ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87664
Updated by Gerrit Code Review 6 days ago
Patch set 2 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87664
Updated by Gerrit Code Review 6 days ago
Patch set 3 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87664
Updated by Gerrit Code Review 6 days ago
Patch set 4 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87664
Updated by Garvin Hicking 5 days ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 0616a66d8bd184fff4751f9b1ecb5364b5487b86.