diff options
author | Georg Richter <georg@php.net> | 2005-05-08 08:39:56 +0000 |
---|---|---|
committer | Georg Richter <georg@php.net> | 2005-05-08 08:39:56 +0000 |
commit | b654b20ef698999221f9faf8756803e0b21c241d (patch) | |
tree | 5397e3b63c598db4617c3bafbd15f4ac93d551bb /ext/mysqli/php_mysqli.h | |
parent | 882bd85360d6f37767dc2c50810bb52a01dbe46e (diff) | |
download | php-git-b654b20ef698999221f9faf8756803e0b21c241d.tar.gz |
Added new function mysqli_set_character_set_name
Diffstat (limited to 'ext/mysqli/php_mysqli.h')
-rw-r--r-- | ext/mysqli/php_mysqli.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/mysqli/php_mysqli.h b/ext/mysqli/php_mysqli.h index b4589cca7d..d72b0a8dc0 100644 --- a/ext/mysqli/php_mysqli.h +++ b/ext/mysqli/php_mysqli.h @@ -25,6 +25,9 @@ #undef LIST #endif +#include <my_global.h> +#include <my_sys.h> +#include <m_ctype.h> #include <mysql.h> #include <errmsg.h> @@ -99,7 +102,13 @@ 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 > 40110 && MYSQL_VERSION_ID < 50000 +#define HAVE_MYSQLI_SET_CHARSET +#endif #else +#define HAVE_MYSQLI_SET_CHARSET #define PHP_MYSQLI_API #endif @@ -293,6 +302,9 @@ PHP_FUNCTION(mysqli_affected_rows); PHP_FUNCTION(mysqli_autocommit); PHP_FUNCTION(mysqli_change_user); PHP_FUNCTION(mysqli_character_set_name); +#ifdef HAVE_MYSQLI_SET_CHARSET +PHP_FUNCTION(mysqli_set_character_set_name); +#endif PHP_FUNCTION(mysqli_close); PHP_FUNCTION(mysqli_commit); PHP_FUNCTION(mysqli_connect); |