mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
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
This commit is contained in:
parent
ee40f557a7
commit
5e79f2c476
9 changed files with 40 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue