summaryrefslogtreecommitdiff
path: root/ext/mysql/php_mysql.h
diff options
context:
space:
mode:
authorScott MacVicar <scottmac@php.net>2007-05-14 17:10:47 +0000
committerScott MacVicar <scottmac@php.net>2007-05-14 17:10:47 +0000
commitac38b635cb83304566b31901cf4aa95bd108d941 (patch)
treec8367120f7236078030a37e5ca248715d4034388 /ext/mysql/php_mysql.h
parenta64089668532a8cef068bd730a79413a6a447f63 (diff)
downloadphp-git-ac38b635cb83304566b31901cf4aa95bd108d941.tar.gz
Add mysql_set_charset() so that the connection encoding can be changed. This is similar to the SET NAMES statement but allows the mysql_real_escape_string to use the correct character set.
Diffstat (limited to 'ext/mysql/php_mysql.h')
-rw-r--r--ext/mysql/php_mysql.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/mysql/php_mysql.h b/ext/mysql/php_mysql.h
index 11d5d8295c..a088208a4b 100644
--- a/ext/mysql/php_mysql.h
+++ b/ext/mysql/php_mysql.h
@@ -91,6 +91,9 @@ PHP_FUNCTION(mysql_stat);
PHP_FUNCTION(mysql_thread_id);
PHP_FUNCTION(mysql_client_encoding);
PHP_FUNCTION(mysql_ping);
+#if (MYSQL_VERSION_ID >= 40113 && MYSQL_VERSION_ID < 50000) || MYSQL_VERSION_ID >= 50007
+PHP_FUNCTION(mysql_set_charset);
+#endif
ZEND_BEGIN_MODULE_GLOBALS(mysql)
long default_link;