[wp-trac] [WordPress Trac] #41722: wpdb::db_connect() does not connect to IPv6 address of mysql server

WordPress Trac noreply at wordpress.org
Thu Sep 7 06:33:30 UTC 2017


#41722: wpdb::db_connect() does not connect to IPv6 address of mysql server
----------------------------------------------------+--------------------
 Reporter:  fierevere                               |       Owner:
     Type:  defect (bug)                            |      Status:  new
 Priority:  normal                                  |   Milestone:  4.9
Component:  Database                                |     Version:  4.8.1
 Severity:  normal                                  |  Resolution:
 Keywords:  has-patch needs-testing has-unit-tests  |     Focuses:
----------------------------------------------------+--------------------
Changes (by schlessera):

 * keywords:  has-patch needs-testing => has-patch needs-testing has-unit-
     tests


Comment:

 Thanks for the feedback, @birgire .

 I've added unit tests, and moved the bracket logic outside of the parsing
 method.

 I've slightly tweaked your IPv4 pattern to not assume the socket starts
 with a `/`, as it might also be a relative path or a named pipe.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41722#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list