mirror of
https://github.com/php/php-src.git
synced 2025-08-17 14:38:49 +02:00
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
This commit is contained in:
parent
78bab4d9b3
commit
0df974b7a5
9 changed files with 41 additions and 12 deletions
|
@ -43,6 +43,13 @@
|
|||
#include <mysql.h>
|
||||
#endif
|
||||
|
||||
#ifdef PHP_MYSQL_UNIX_SOCK_ADDR
|
||||
#ifdef MYSQL_UNIX_ADDR
|
||||
#undef MYSQL_UNIX_ADDR
|
||||
#endif
|
||||
#define MYSQL_UNIX_ADDR PHP_MYSQL_UNIX_SOCK_ADDR
|
||||
#endif
|
||||
|
||||
#if (MYSQL_VERSION_ID >= 40113 && MYSQL_VERSION_ID < 50000) || MYSQL_VERSION_ID >= 50007 || MYSQL_USE_MYSQLND
|
||||
#define MYSQL_HAS_SET_CHARSET
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue