[wp-trac] [WordPress Trac] #53623: MariaDB 10.6 renamed utf8 to utf8mb3

WordPress Trac noreply at wordpress.org
Mon Aug 22 16:41:10 UTC 2022


#53623: MariaDB 10.6 renamed utf8 to utf8mb3
--------------------------+-----------------------------
 Reporter:  skithund      |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  6.1
Component:  Database      |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"53919" 53919]:
 {{{
 #!CommitTicketReference repository="" revision="53919"
 Tests: Correct MariaDB version check in database charset tests.

 MariaDB version is reported differently between PHP versions:
 * PHP 8.0.16 or later: `10.6.8-MariaDB`
 * PHP 8.0.15 or earlier: `5.5.5-10.6.8-MariaDB`

 The latter includes PHP 7.4.x and PHP 5.6.x as well, where the version is
 also reported with the `5.5.5-` prefix.

 This commit makes an adjustment to the `Tests_DB_Charset` class to check
 for the correct version.

 References:
 * [https://github.com/php/php-src/issues/7972 php-src: #7972: MariaDB
 version prefix 5.5.5- is not stripped]
 * [https://github.com/php/php-src/pull/7963 php-src: PR #7963 Fix GH-7932:
 MariaDB version prefix not always stripped]

 Follow-up to [53918].

 Fixes #53623.
 }}}

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


More information about the wp-trac mailing list