Task #95738

Make HtmlParser compatible with PHP 8

Added by Francois Suter 7 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
Must have
Assignee:
-
Category:
-
Start date:
2021-10-23
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
medium
Sprint Focus:

Description

Class \TYPO3\CMS\Core\Html\HtmlParser generates a lot of undefined key warnings when running with PHP 8. It needs to be cleaned up.

This is made rather difficult by the lack of documentation and complete parsing scenario.


Related issues

Has duplicate TYPO3 Core - Bug #95833: HtmlParser throws exception in PHP 8.0Closed2021-10-31

Actions
Has duplicate TYPO3 Core - Bug #95880: Fix "undefined array key" warnings in HtmlParser with PHP 8Closed2021-11-05

Actions
#1

Updated by Gerrit Code Review 7 months ago

  • Status changed from New to Under Review

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

#2

Updated by Sybille Peters 7 months ago

François, can you add how to test this?

#3

Updated by Gerrit Code Review 7 months ago

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

#4

Updated by Stefan Bürk 7 months ago

François, may you provide some examples ?

  • to verify manually
  • eventually to use and add as tests
#5

Updated by Wouter Wolters 7 months ago

  • Has duplicate Bug #95833: HtmlParser throws exception in PHP 8.0 added
#6

Updated by Andreas Fernandez 6 months ago

  • Has duplicate Bug #95880: Fix "undefined array key" warnings in HtmlParser with PHP 8 added
#7

Updated by Gerrit Code Review 6 months ago

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

#8

Updated by Anonymous 6 months ago

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

Also available in: Atom PDF