summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql/php_pdo_mysql_int.h
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2008-07-21 13:01:41 +0000
committerAndrey Hristov <andrey@php.net>2008-07-21 13:01:41 +0000
commit0df974b7a599ae424bc7f80c23b4c721d689ce9c (patch)
tree11234a3074514c211c8351766f5a76e4c97531b7 /ext/pdo_mysql/php_pdo_mysql_int.h
parent78bab4d9b306334951474ce296009e1720199cdd (diff)
downloadphp-git-0df974b7a599ae424bc7f80c23b4c721d689ce9c.tar.gz
MFB :
Fix for bug#45179 --with-mysql-sock fails to compile & work Now --with-mysql-sock controls all mysql extensions. If provided it will be the default value as it was set in php.ini . php.ini will override it for ext/mysql and ext/mysqli but not for pdo_mysql
Diffstat (limited to 'ext/pdo_mysql/php_pdo_mysql_int.h')
-rwxr-xr-xext/pdo_mysql/php_pdo_mysql_int.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/pdo_mysql/php_pdo_mysql_int.h b/ext/pdo_mysql/php_pdo_mysql_int.h
index d896bbc15a..65bcbd2a2b 100755
--- a/ext/pdo_mysql/php_pdo_mysql_int.h
+++ b/ext/pdo_mysql/php_pdo_mysql_int.h
@@ -87,4 +87,13 @@ enum {
PDO_MYSQL_ATTR_MAX_BUFFER_SIZE,
PDO_MYSQL_ATTR_DIRECT_QUERY,
};
+
+#ifndef PDO_MYSQL_UNIX_ADDR
+# ifdef PHP_WIN32
+# define PDO_MYSQL_UNIX_ADDR "MySQL"
+# else
+# define PDO_MYSQL_UNIX_ADDR "/tmp/mysql.sock"
+# endif
+#endif
+
#endif