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

Created on 31 October 2023, about 1 year 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

Active

Version

7.0 ⚰️

Component
FilterΒ  β†’

Last updated 9 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.71.5 2024