summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql/mysql_driver.c
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2011-11-02 15:45:53 +0000
committerJohannes Schlüter <johannes@php.net>2011-11-02 15:45:53 +0000
commit539a0f3bd340b6377ed3407d89665d2386fe0943 (patch)
treec07171a4ec10f2e2cd7d7057c941b9892dc6c5c8 /ext/pdo_mysql/mysql_driver.c
parent2627fafcbdd81d9ec88e891cd6077ab42080352d (diff)
downloadphp-git-539a0f3bd340b6377ed3407d89665d2386fe0943.tar.gz
- Fix bug #60155 (pdo_mysql.default_socket ignored).
Diffstat (limited to 'ext/pdo_mysql/mysql_driver.c')
-rwxr-xr-xext/pdo_mysql/mysql_driver.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/ext/pdo_mysql/mysql_driver.c b/ext/pdo_mysql/mysql_driver.c
index f6003d9061..5c38e54140 100755
--- a/ext/pdo_mysql/mysql_driver.c
+++ b/ext/pdo_mysql/mysql_driver.c
@@ -525,12 +525,11 @@ static struct pdo_dbh_methods mysql_methods = {
pdo_mysql_check_liveness
};
/* }}} */
-#ifdef PDO_USE_MYSQLND
-# ifdef PHP_WIN32
-# define MYSQL_UNIX_ADDR "MySQL"
-# else
-# define MYSQL_UNIX_ADDR PDO_MYSQL_G(default_socket)
-# endif
+
+#ifdef PHP_WIN32
+# define MYSQL_UNIX_ADDR NULL
+#else
+# define MYSQL_UNIX_ADDR PDO_MYSQL_G(default_socket)
#endif
/* {{{ pdo_mysql_handle_factory */