From 5e79f2c47616cba4e4dbb710caed7486b1df75a6 Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Mon, 21 Jul 2008 12:58:51 +0000 Subject: 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 --- ext/pdo_mysql/php_pdo_mysql_int.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ext/pdo_mysql/php_pdo_mysql_int.h') 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 -- cgit v1.2.1