summaryrefslogtreecommitdiff
path: root/ext/mysql/php_mysql.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-10-15 12:08:25 +0200
committerAnatol Belski <ab@php.net>2014-10-15 12:08:25 +0200
commit98a8481e5e6bb111e8bb17af929f6fdbda308cb9 (patch)
treeeb340388d5cc7b4b53c61ca665f8de689d0d4b09 /ext/mysql/php_mysql.c
parent236857cb476f0b83a2bfebac5308b907ecd875b8 (diff)
downloadphp-git-98a8481e5e6bb111e8bb17af929f6fdbda308cb9.tar.gz
converted some ext/mysql* and fixed ext/zlib
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r--ext/mysql/php_mysql.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c
index fc1dac5da7..9454577a98 100644
--- a/ext/mysql/php_mysql.c
+++ b/ext/mysql/php_mysql.c
@@ -358,6 +358,9 @@ zend_module_entry mysql_module_entry = {
/* }}} */
#ifdef COMPILE_DL_MYSQL
+#ifdef ZTS
+ZEND_TSRMLS_CACHE_DEFINE;
+#endif
ZEND_GET_MODULE(mysql)
#endif
@@ -518,6 +521,9 @@ PHP_INI_END()
*/
static PHP_GINIT_FUNCTION(mysql)
{
+#if defined(COMPILE_DL_MYSQL) && defined(ZTS)
+ ZEND_TSRMLS_CACHE_UPDATE;
+#endif
mysql_globals->num_persistent = 0;
mysql_globals->default_socket = NULL;
mysql_globals->default_host = NULL;