Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #51988, comment 19


Ignore:
Timestamp:
02/18/2023 07:13:12 PM (12 months ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51988, comment 19

    initial v1  
    1414In my testing, `wp_check_php_mysql_versions()` does not bail here due to the `extension_loaded( 'mysqlnd' )` check added in [36434] / #33261. The `mysqlnd` extension is reported as available on my environment, but does not appear to work as a fallback in case `mysqli` is not available, at least not on PHP 8.0+.
    1515
    16 So [attachment:"51988.alt.diff"] is an alternative patch which checks if either `mysqli_connect()` or `mysql_connect()` function exists, and returns early from `wp_check_php_mysql_versions()` otherwise with a more friendly message.
     16So [attachment:"51988.alt.diff"] is an alternative patch which checks if either `mysqli_connect()` or `mysql_connect()` function exists, and returns early from `wp_check_php_mysql_versions()` otherwise with a more friendly message. This mirrors the existing `function_exists( 'mysqli_connect' )` check in [source:tags/6.1.1/src/wp-includes/class-wpdb.php?marks=716#L710 wpdb::__construct()].
    1717
    1818To test: