Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
exception: [Deprecated function] Line 569 of modules/simpletest/tests/system_test.module:
Implicit conversion from float 7.5 to int loses precision
exception: [Deprecated function] Line 1998 of includes/common.inc:
Implicit conversion from float 2.3996500000000003 to int loses precision
exception: [Deprecated function] Line 755 of modules/color/color.module:
Implicit conversion from float 112.99284000000004 to int loses precision
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#12 | 3248752-12.patch | 3.2 KB | mcdruid |
#12 | interdiff-3248752-10-12.txt | 639 bytes | mcdruid |
Comments
Comment #2
mcdruidComment #3
mcdruidComment #4
mcdruidComment #5
mcdruidComment #6
mcdruidComment #7
mcdruidLooking at #3224299-19: [META] Make Drupal 7 core compatible with PHP 8.1 the change here:
...has not fixed the error (/ deprecation warning).
My guess is that there's a problem with the precedence.
I'm also not certain that this is doing what it should be, although it has stopped the warnings:
Comment #8
mcdruidI think this is better for the color.module
Comment #9
mcdruidDidn't mean to include the extra parens in common.inc
Comment #10
mcdruidNeed to ensure values passed to imagecolorallocate are int's.
Comment #11
mcdruidComment #12
mcdruidComment #14
mcdruidComment #15
demeritcowboy CreditAttribution: demeritcowboy commentedHi,
I have added an issue and merge request https://git.drupalcode.org/project/drupal/-/merge_requests/1430 since part of the change to the color module here causes a problem with garland when not using blue lagoon.