summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli.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/mysqli/mysqli.c
parent236857cb476f0b83a2bfebac5308b907ecd875b8 (diff)
downloadphp-git-98a8481e5e6bb111e8bb17af929f6fdbda308cb9.tar.gz
converted some ext/mysql* and fixed ext/zlib
Diffstat (limited to 'ext/mysqli/mysqli.c')
-rw-r--r--ext/mysqli/mysqli.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c
index 878c8fb946..490da81ad0 100644
--- a/ext/mysqli/mysqli.c
+++ b/ext/mysqli/mysqli.c
@@ -537,6 +537,9 @@ PHP_INI_END()
*/
static PHP_GINIT_FUNCTION(mysqli)
{
+#if defined(COMPILE_DL_MYSQLI) && defined(ZTS)
+ ZEND_TSRMLS_CACHE_UPDATE;
+#endif
mysqli_globals->num_links = 0;
mysqli_globals->num_active_persistent = 0;
mysqli_globals->num_inactive_persistent = 0;
@@ -1030,6 +1033,9 @@ zend_module_entry mysqli_module_entry = {
/* }}} */
#ifdef COMPILE_DL_MYSQLI
+#ifdef ZTS
+ZEND_TSRMLS_CACHE_DEFINE;
+#endif
ZEND_GET_MODULE(mysqli)
#endif