Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37855629
en ru br
ALT Linux repos
S:8.2.10-alt1

Group :: Development/Other
RPM: php8.2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: php-mysqlnd-socket.patch
Download


diff --git a/ext/mysqlnd/mysqlnd_connection.c b/ext/mysqlnd/mysqlnd_connection.c
index 10addf0..9519437 100644
--- a/ext/mysqlnd/mysqlnd_connection.c
+++ b/ext/mysqlnd/mysqlnd_connection.c
@@ -559,7 +559,7 @@ MYSQLND_METHOD(mysqlnd_conn_data, get_scheme)(MYSQLND_CONN_DATA * conn, MYSQLND_
 	if (hostname.l == sizeof("localhost") - 1 && !strncasecmp(hostname.s, "localhost", hostname.l)) {
 		DBG_INF_FMT("socket=%s", socket_or_pipe->s? socket_or_pipe->s:"n/a");
 		if (!socket_or_pipe->s) {
-			socket_or_pipe->s = "/tmp/mysql.sock";
+			socket_or_pipe->s = "/var/lib/mysql/mysql.sock";
 			socket_or_pipe->l = strlen(socket_or_pipe->s);
 		}
 		transport.l = mnd_sprintf(&transport.s, 0, "unix://%s", socket_or_pipe->s);
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin