Make MySQLi work with non-standard socket
authorJesús Martínez Novo <martineznovo@gmail.com>
Sun, 1 Jun 2014 13:54:48 +0000 (15:54 +0200)
committerLegoktm <legoktm.wikipedia@gmail.com>
Sat, 13 Sep 2014 05:04:36 +0000 (05:04 +0000)
commita74881be24946a0d0fa0f2b3b0f7b403a4fa89e2
tree6119829121eadf08546bb96ffb23d6d8df262675
parent502fffe3bf2cb6a8fccb8059436a038e21153596
Make MySQLi work with non-standard socket

MySQLi needs to specify the socket location as a parameter, and not as part
of the hostname.

Split the socket out of the hostname if it contains *one* colon (IPv6 safe)
after checking for the port number.

Bug: 65998
Change-Id: I66ee34e1029bc1630669bde4272d0eae9d3fd9f1
includes/db/DatabaseMysqli.php