summaryrefslogtreecommitdiff
path: root/ext/mysql/php_mysql.h
diff options
context:
space:
mode:
authorScott MacVicar <scottmac@php.net>2007-05-14 17:11:50 +0000
committerScott MacVicar <scottmac@php.net>2007-05-14 17:11:50 +0000
commit1029532b2fb233925d7db5511f11d428491c3a26 (patch)
tree749e4d46dc21ec18e8dc13727368044b7da1cd5c /ext/mysql/php_mysql.h
parent7bdb1ed5cd2cc69058187c7d0983bac07f12ff44 (diff)
downloadphp-git-1029532b2fb233925d7db5511f11d428491c3a26.tar.gz
MFB: 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;