[wp-trac] [WordPress Trac] #64332: Incomplete accounting for MariaDB version being prefixed with '5.5.5-' on older PHP versions

WordPress Trac noreply at wordpress.org
Wed Dec 3 20:53:11 UTC 2025


#64332: Incomplete accounting for MariaDB version being prefixed with '5.5.5-' on
older PHP versions
--------------------------------------+-----------------------------
 Reporter:  maximumsoftware           |       Owner:  SergeyBiryukov
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  7.0
Component:  Database                  |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"61349" 61349]:
 {{{
 #!CommitTicketReference repository="" revision="61349"
 Database: Further correct MariaDB version check in `wpdb::has_cap()`.

 On older PHP versions, MariaDB version is reported with the `5.5.5-`
 prefix, e.g. `5.5.5-10.6.24-MariaDB`.

 This includes PHP 8.0.15 or earlier, as well as PHP 8.1.0—8.1.2, which was
 not accounted for previously.

 This commit updates the condition for removing the `5.5.5-` prefix to
 include PHP 8.1.0—8.1.2.

 Follow-up to [54384].

 Props maximumsoftware, hbhalodia, SergeyBiryukov.
 Fixes #64332.
 }}}

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


More information about the wp-trac mailing list