Changes between Initial Version and Version 1 of Ticket #51988, comment 19
- Timestamp:
- 02/18/2023 07:13:12 PM (19 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #51988, comment 19
initial v1 14 14 In 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+. 15 15 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. 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. 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()]. 17 17 18 18 To test: