[wp-trac] [WordPress Trac] #54877: Occasional PHP exception being thrown on WPDB/MySQLi connections
WordPress Trac
noreply at wordpress.org
Wed Jul 6 05:32:02 UTC 2022
#54877: Occasional PHP exception being thrown on WPDB/MySQLi connections
-------------------------------------------------+-------------------------
Reporter: johnjamesjacoby | Owner:
| peterwilsoncc
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.1
Component: Database | Version: 1.5
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing early | Focuses:
commit |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"53670" 53670]:
{{{
#!CommitTicketReference repository="" revision="53670"
Database: Ensure MySQL port numbers are numeric in `wpdb`.
Ensure the database port number is recorded as an integer or `null` (the
default port) when parsing the database host.
This is to prevent PHP/MySQLi throwing an exception caused by ports
represented as numeric strings.
Props audrasjb, azouamauriac, chaion07, costdev, johnjamesjacoby, jrf,
sergeybiryukov.
Fixes #54877.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54877#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list