[wp-trac] [WordPress Trac] #56817: Investigate new test failure in PHP 8.2

WordPress Trac noreply at wordpress.org
Mon Mar 6 12:51:54 UTC 2023


#56817: Investigate new test failure in PHP 8.2
--------------------------------------------+-----------------------------
 Reporter:  desrosj                         |       Owner:  SergeyBiryukov
     Type:  defect (bug)                    |      Status:  closed
 Priority:  normal                          |   Milestone:  6.2
Component:  Build/Test Tools                |     Version:
 Severity:  normal                          |  Resolution:  fixed
 Keywords:  php82 has-patch has-unit-tests  |     Focuses:
--------------------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 In [changeset:"55463" 55463]:
 {{{
 #!CommitTicketReference repository="" revision="55463"
 Tests: Adjust the expected mime type for WOFF fonts on PHP 8.1.12+.

 As of PHP 8.1.12, which includes libmagic/file update to version 5.42, the
 expected mime type for WOFF files has changed to `font/woff`, so the type
 needs to be adjusted accordingly in `wp_check_filetype_and_ext()` tests.

 References:
 * [https://github.com/php/php-src/issues/8805 php-src: #8805: finfo
 returns wrong mime type for woff/woff2 files]
 * [https://www.php.net/ChangeLog-8.php#8.1.12 PHP 8.1.12 changelog]

 Follow-up to [40124], [54508], [54509], [54724].

 Props costdev, SergeyBiryukov.
 Merges [55462] to the 6.1 branch.
 Fixes #56817.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56817#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list