Project

General

Profile

Actions

Task #105898

closed

Extension scanner should find usages of magic strings like TYPO3_MODE

Added by Garvin Hicking 7 days ago. Updated 5 days ago.

Status:
Resolved
Priority:
Should have
Category:
Backend API
Target version:
Start date:
2025-01-07
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Task #92947: Phase out TYPO3_MODE and friendsClosed2020-11-28

Actions
Related to TYPO3 Core - Epic #96107: Core v12 deprecation removalsClosed2021-11-21

Actions
Actions #1

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

Actions #2

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

Actions #3

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
Actions #4

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

Actions #5

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

Actions #6

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

Actions #7

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

Actions #8

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

Actions #9

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

Actions #10

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

Actions #11

Updated by Garvin Hicking 5 days ago

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

Also available in: Atom PDF