mirror of
https://github.com/php/php-src.git
synced 2025-01-08 20:17:28 +08:00
mysql_set_charset now works version undependent for MySQL 4.1.13 and above
This commit is contained in:
parent
49e1484da8
commit
d8f91dc44c
@ -99,16 +99,14 @@ typedef struct {
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
#define PHP_MYSQLI_API __declspec(dllexport)
|
||||
#if MYSQL_VERSION_ID > 50005
|
||||
#define HAVE_MYSQLI_SET_CHARSET
|
||||
#elif MYSQL_VERSION_ID > 40112 && MYSQL_VERSION_ID < 50000
|
||||
#define HAVE_MYSQLI_SET_CHARSET
|
||||
#endif
|
||||
#else
|
||||
#define HAVE_MYSQLI_SET_CHARSET
|
||||
#define PHP_MYSQLI_API
|
||||
#endif
|
||||
|
||||
#if MYSQL_VERSION_ID > 40112 && MYSQL_VERSION_ID < 50000
|
||||
#define HAVE_MYSQLI_SET_CHARSET
|
||||
#endif
|
||||
|
||||
#ifdef ZTS
|
||||
#include "TSRM.h"
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user