TextSummaryTest:testLength() fails on some libxml versions

Created on 26 August 2023, over 1 year ago
Updated 3 January 2024, 12 months ago

Problem/Motivation

Faced in #3375693-27: Fix deprecated assert_options() function usage for PHP 8.3 β†’

Running test on debian:buster and newer releases the test fails, faced on PHP 8.3 image as it was updated to the latest debian:bookworm

PHP 8.2 image using libxml libXML Compiled Version => 2.9.10 but 8.3 using 2.9.14

- 8.2 https://dispatcher.drupalci.org/job/drupal_patches/199724/artifact/jenki...
- 8.3 https://dispatcher.drupalci.org/job/drupal_patches/199725/artifact/jenki...

Locally on Ubuntu 23.04 using PHP 8.1 with libxml 2.9.14 the test case also fails, also tested on Alpinelinux 2.11.5 where it also fails independently from PHP version

Previously similar issues with libxml version #3280602-13: Exceptions for CKEditor 5 plugin definitions containing wildcard tags when PHP is built with libxml 2.9.14 β†’ @mstrelan suggested

Steps to reproduce

# using 8.2 CI image
core$ docker run --rm -it -v $(pwd):/mnt -w /mnt drupalci/php-8.2-apache:production bash

root@c17f9a60c448:/mnt# php -r 'require __DIR__ . "/autoload.php"; echo \Drupal\Component\Utility\Html::normalize("<");'

# no result rendered

# upgrade libxml2 using https://packages.sury.org/php/README.txt

root@c17f9a60c448:/mnt# curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
root@c17f9a60c448:/mnt# sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ bullseye main" > /etc/apt/sources.list.d/php.list'

# apt update && apt list --upgradable
# apt upgrade -y

root@c17f9a60c448:/mnt# php -r 'require __DIR__ . "/autoload.php"; echo \Drupal\Component\Utility\Html::normalize("<");'
&lt;

All newer libxml returns &lt;

Proposed resolution

- find out

Remaining tasks

- find the cause
- patch/review/commit

User interface changes

no

API changes

no

Data model changes

no

Release notes snippet

πŸ“Œ Task
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
FilterΒ  β†’

Last updated 1 day ago

No maintainer
Created by

πŸ‡«πŸ‡·France andypost

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

Comments & Activities

Production build 0.71.5 2024