]> granicus.if.org Git - php/commitdiff
Fixed bug #50023 (pdo_mysql doesn't use PHP_MYSQL_UNIX_SOCK_ADDR)
authorIlia Alshanetsky <iliaa@php.net>
Thu, 29 Oct 2009 13:33:51 +0000 (13:33 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 29 Oct 2009 13:33:51 +0000 (13:33 +0000)
# Original patch by six at aegis-corp dot org

NEWS
ext/pdo_mysql/pdo_mysql.c

diff --git a/NEWS b/NEWS
index ee9b184fa776fbe9c0ae943d70f44d2ed8a2da98..34234bab43672fe37317c7fce58234ebca84451d 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -14,6 +14,7 @@ PHP                                                                        NEWS
 - Fixed memory leak in extension loading when an error occurs on Windows.
   (Pierre)
 
+- Fixed bug #50023 (pdo_mysql doesn't use PHP_MYSQL_UNIX_SOCK_ADDR). (Ilia)
 - Fixed bug #49142 (crash when exception thrown from __tostring()).
   (David Soria Parra)
 - Fixed bug #49990 (SNMP3 warning message about security level printed twice).
index 7ab568f8ecbb3ae51c1499ee4469e72789161536..ccd42f5743fe1a19471e3b0773bc4830c4a70521 100755 (executable)
@@ -40,11 +40,14 @@ ZEND_DECLARE_MODULE_GLOBALS(pdo_mysql);
 
 #ifndef PHP_WIN32
 # ifndef PDO_MYSQL_UNIX_ADDR
-#  define PDO_MYSQL_UNIX_ADDR  "/tmp/mysql.sock"
+#  ifdef PHP_MYSQL_UNIX_SOCK_ADDR
+#   define PDO_MYSQL_UNIX_ADDR PHP_MYSQL_UNIX_SOCK_ADDR
+#  else
+#   define PDO_MYSQL_UNIX_ADDR "/tmp/mysql.sock"
+#  endif
 # endif
 #endif
 
-
 /* {{{ PHP_INI_BEGIN
 */
 PHP_INI_BEGIN()