[D7 PHP 8.3] TextSummaryTestCase::testLength() fails on some libxml versions

Created on 31 October 2023, 8 months ago
Updated 10 May 2024, about 2 months ago

Problem/Motivation

On libxml 2.9.14 there is a difference in DOMDocument::loadHTML() behavior. The failures are not present in PHP 8.3 with libxml 2.9.10 (tested in Debian bullseye vs bookworm).

Currently, Drupal PHP 8.3 image is using libxml 2.9.14, which causes failures in D7 tests:

https://www.drupal.org/pift-ci-job/2790709 β†’
https://www.drupal.org/pift-ci-job/2790712 β†’

Similar issue was investigated in D10, but it seems like the solution was to replace DOMDocument parsing with another library, which seems difficult for D7 in this phase.

See the full history here: πŸ“Œ TextSummaryTest:testLength() fails on some libxml versions Closed: outdated

Steps to reproduce

Run tests on PHP 8.3 with libxml 2.9.14

Proposed resolution

Find a workaround how to fix this changed behavior to have green tests again.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Needs review

Version

7.0 ⚰️

Component
FilterΒ  β†’

Last updated 3 days ago

No maintainer
Created by

πŸ‡ΈπŸ‡°Slovakia poker10

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024