From e77c9bb97ed56d30c08f7d7ea9c06dd80ac9467b Mon Sep 17 00:00:00 2001 From: josh4trunks Date: Wed, 4 Jun 2014 22:50:23 -0700 Subject: [PATCH] Work with MySQL Sockets This passes anything that is not a valid port (065535) { + $socket=true; + } } else { $port=false; } @@ -89,7 +92,11 @@ class OC_DB { 'dbname' => $name, ); if (!empty($port)) { - $connectionParams['port'] = $port; + if ($socket) { + $connectionParams['unix_socket'] = $port; + } else { + $connectionParams['port'] = $port; + } } } -- 2.39.5