diff options
author | Dmitry Stogov <dmitry@zend.com> | 2019-03-12 14:15:47 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2019-03-12 14:15:47 +0300 |
commit | f1b306fe117cfbbe69ab4ef9713d39ea068e74c0 (patch) | |
tree | 876485fc86d30924b161cd623919ddfc11a5c69a /ext/imap/php_imap.c | |
parent | 5aa1176238f41097ea7295ba6911aa19ae7c1021 (diff) | |
download | php-git-f1b306fe117cfbbe69ab4ef9713d39ea068e74c0.tar.gz |
Switch to use ZTS cache
Diffstat (limited to 'ext/imap/php_imap.c')
-rw-r--r-- | ext/imap/php_imap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 5802fa68c5..86a4296a98 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -592,6 +592,9 @@ zend_module_entry imap_module_entry = { /* }}} */ #ifdef COMPILE_DL_IMAP +#ifdef ZTS +ZEND_TSRMLS_CACHE_DEFINE() +#endif ZEND_GET_MODULE(imap) #endif @@ -808,6 +811,9 @@ void mail_getacl(MAILSTREAM *stream, char *mailbox, ACLLIST *alist) */ static PHP_GINIT_FUNCTION(imap) { +#if defined(COMPILE_DL_IMAP) && defined(ZTS) + ZEND_TSRMLS_CACHE_UPDATE(); +#endif imap_globals->imap_user = NIL; imap_globals->imap_password = NIL; |