X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;ds=sidebyside;f=dev-lang%2Fphp%2Ffiles%2Fall_mysql_socket_location-gentoo.patch;fp=dev-lang%2Fphp%2Ffiles%2Fall_mysql_socket_location-gentoo.patch;h=bd17998601454a2063971869015f747a21c1fb74;hb=e9b6003551af59f6957afa8e076c2433c3778166;hp=0000000000000000000000000000000000000000;hpb=15005b00acc089b4c7cec4bdaaf3d58f0aef444c;p=mjo-overlay.git diff --git a/dev-lang/php/files/all_mysql_socket_location-gentoo.patch b/dev-lang/php/files/all_mysql_socket_location-gentoo.patch new file mode 100644 index 0000000..bd17998 --- /dev/null +++ b/dev-lang/php/files/all_mysql_socket_location-gentoo.patch @@ -0,0 +1,13 @@ +diff -u a/ext/mysqlnd/mysqlnd.c b/ext/mysqlnd/mysqlnd.c +--- a/ext/mysqlnd/mysqlnd.c 2010-10-22 17:46:26.000000000 +0200 ++++ b/ext/mysqlnd/mysqlnd.c 2010-12-08 21:54:47.000000000 +0100 +@@ -619,7 +619,8 @@ + if (host_len == sizeof("localhost") - 1 && !strncasecmp(host, "localhost", host_len)) { + DBG_INF_FMT("socket=%s", socket_or_pipe? socket_or_pipe:"n/a"); + if (!socket_or_pipe) { +- socket_or_pipe = "/tmp/mysql.sock"; ++ // gentoo mysql default socket location ++ socket_or_pipe = "/var/run/mysqld/mysqld.sock"; + } + transport_len = spprintf(&transport, 0, "unix://%s", socket_or_pipe); + unix_socket = TRUE;