diff options
author | Dmitry Stogov <dmitry@zend.com> | 2019-03-12 14:17:14 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2019-03-12 14:17:14 +0300 |
commit | 5f09db3073c670e7fc428076cbe7671c838830e2 (patch) | |
tree | 6ef3c536cc602c05e485cef8a8175ea8a59c0875 /ext/imap/php_imap.c | |
parent | c56bd7e220dacd1bf65c08d6e1c4ab406b160993 (diff) | |
parent | f1b306fe117cfbbe69ab4ef9713d39ea068e74c0 (diff) | |
download | php-git-5f09db3073c670e7fc428076cbe7671c838830e2.tar.gz |
Merge branch 'PHP-7.4'
* PHP-7.4:
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; |