[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
Tue Dec 2 03:45:31 UTC 2025
#64332: Incomplete accounting for MariaDB version being prefixed with '5.5.5-' on
older PHP versions
-----------------------------+-----------------------------
Reporter: maximumsoftware | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version:
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
In the file `wp-includes/class-wpdb.php`, function `has_cap`, near
`Account for MariaDB version being prefixed with '5.5.5-' on older PHP
versions`, there is a possible issue with {{{PHP_VERSION_ID < 80016 // PHP
8.0.15 or older.}}}.
The problem is that if you look at https://www.php.net/ChangeLog-8.php,
you can see that `GH-7972` is fixed twice, once in 8.0.16 and second time
in 8.1.3, which means the prefix is still there in 8.1.0 - 8.1.2. So,
{{{PHP_VERSION_ID < 80016}}} should actually be {{{(PHP_VERSION_ID < 80016
|| (PHP_VERSION_ID >= 80100 && PHP_VERSION_ID < 80103))}}}.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64332>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list