Fix ToolkitGdTest n PHP 8.5

Created on 8 August 2025, 13 days ago

Problem/Motivation

The ToolkitGdTest test fails probably because of

- https://github.com/php/php-src/pull/17375
- https://github.com/php/php-src/pull/19107

Steps to reproduce

See https://git.drupalcode.org/issue/drupal-3523596/-/jobs/6151376

     ✘ Manipulations with 29
       ┐
       β”œ Image 'image-test.gif' object after 'rotate_5' action has the correct color placement at corner '0' - Actual: {255,0,93,0}, Expected: {255,0,255,0}, Distance: 26244, Tolerance: 0
       β”œ Failed asserting that 26244 is equal to 0 or is less than 0.             
       β”‚
       β”‚ /builds/issue/drupal-3523596/core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php:90
       β”‚ /builds/issue/drupal-3523596/core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php:357
       β”΄
     ✘ Manipulations with 30
       ┐
       β”œ Image 'image-test.gif' object after 'rotate_transparent_5' action has the correct color placement at corner '0' - Actual: {255,93,0,46}, Expected: {255,255,255,127}, Distance: 97830, Tolerance: 0
       β”œ Failed asserting that 97830 is equal to 0 or is less than 0.             
       β”‚
       β”‚ /builds/issue/drupal-3523596/core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php:90
       β”‚ /builds/issue/drupal-3523596/core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php:357
       β”΄

Proposed resolution

find out why rotation failing and fix

Remaining tasks

MR, review, commit

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component

image system

Created by

πŸ‡«πŸ‡·France andypost

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