Make WordPress Core

Opened 8 months ago

Closed 8 months ago

#64050 closed defect (bug) (fixed)

PHP 8.5: Changed mime type for HEIF test image

Reported by: swissspidy's profile swissspidy Owned by: swissspidy's profile swissspidy
Milestone: 6.9 Priority: normal
Severity: normal Version:
Component: Media Keywords: has-patch php85 has-unit-tests
Focuses: php-compatibility Cc:

Description

Parent ticket for all things PHP 8.5: #63061


In PHP 8.5, the following test fails:

1) Tests_Functions::test_wp_get_image_mime with data set #13 ('/var/www/tests/phpunit/includ...e.heic', 'image/heic')
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'image/heic'
+'image/heif'

So the detected mime type is different now.

Change History (2)

This ticket was mentioned in PR #10079 on WordPress/wordpress-develop by @swissspidy.


8 months ago
#1

  • Keywords has-unit-tests added

#2 @swissspidy
8 months ago

  • Owner set to swissspidy
  • Resolution set to fixed
  • Status changed from assigned to closed

In 60810:

Media: Fix HEIF mime type assertion in test for PHP 8.5.

In PHP 8.5, the test image's mime type is now detected as image/heif, not image/heic.

Props swissspidy, adamsilverstein.
Fixes #64050.

Note: See TracTickets for help on using tickets.