]> gitweb.michael.orlitzky.com - mjo-overlay.git/blob - dev-lang/php/files/all_mysql_socket_location-gentoo.patch
bd17998601454a2063971869015f747a21c1fb74
[mjo-overlay.git] / dev-lang / php / files / all_mysql_socket_location-gentoo.patch
1 diff -u a/ext/mysqlnd/mysqlnd.c b/ext/mysqlnd/mysqlnd.c
2 --- a/ext/mysqlnd/mysqlnd.c 2010-10-22 17:46:26.000000000 +0200
3 +++ b/ext/mysqlnd/mysqlnd.c 2010-12-08 21:54:47.000000000 +0100
4 @@ -619,7 +619,8 @@
5 if (host_len == sizeof("localhost") - 1 && !strncasecmp(host, "localhost", host_len)) {
6 DBG_INF_FMT("socket=%s", socket_or_pipe? socket_or_pipe:"n/a");
7 if (!socket_or_pipe) {
8 - socket_or_pipe = "/tmp/mysql.sock";
9 + // gentoo mysql default socket location
10 + socket_or_pipe = "/var/run/mysqld/mysqld.sock";
11 }
12 transport_len = spprintf(&transport, 0, "unix://%s", socket_or_pipe);
13 unix_socket = TRUE;