[wp-trac] [WordPress Trac] #41722: wpdb::db_connect() does not connect to IPv6 address of mysql server
WordPress Trac
noreply at wordpress.org
Wed Oct 11 00:09:50 UTC 2017
#41722: wpdb::db_connect() does not connect to IPv6 address of mysql server
----------------------------------------------------+---------------------
Reporter: fierevere | Owner: pento
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.9
Component: Database | Version: 4.8.1
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing has-unit-tests | Focuses:
----------------------------------------------------+---------------------
Changes (by pento):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"41820"]:
{{{
#!CommitTicketReference repository="" revision="41820"
Database: When parsing the host, leave the port and socket as `null` if
they're not defined.
This fixes a change in behaviour introduced by [41629].
The host is set to an empty string when it isn't defined, this continues
existing behaviour. In particular, the mysqli library treats a `null` host
as being the same as `localhost`, which is not always the intended
behaviour.
Props birgire, markjaquith, pento.
Fixes #41722.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41722#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list