diff options
author | Anatol Belski <ab@php.net> | 2014-10-16 18:50:19 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-10-16 18:50:19 +0200 |
commit | aac7b1db7c9df59ffb0860de7692c653719cf4d0 (patch) | |
tree | 1fe1bdc2ffc380a0eaeea069ed5cbb0176eb7715 /ext/sqlite3/sqlite3.c | |
parent | 073c79b8b539fbbfc540db1cb1a15dfba5358f24 (diff) | |
download | php-git-aac7b1db7c9df59ffb0860de7692c653719cf4d0.tar.gz |
converted ext/sqlite and ext/pdo_mysql to use static tsrmls cache
Diffstat (limited to 'ext/sqlite3/sqlite3.c')
-rw-r--r-- | ext/sqlite3/sqlite3.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/sqlite3/sqlite3.c b/ext/sqlite3/sqlite3.c index af3dec0681..a98b303547 100644 --- a/ext/sqlite3/sqlite3.c +++ b/ext/sqlite3/sqlite3.c @@ -2271,6 +2271,9 @@ PHP_MINFO_FUNCTION(sqlite3) */ static PHP_GINIT_FUNCTION(sqlite3) { +#if defined(COMPILE_DL_SQLITE3) && defined(ZTS) + ZEND_TSRMLS_CACHE_UPDATE; +#endif memset(sqlite3_globals, 0, sizeof(*sqlite3_globals)); } /* }}} */ @@ -2296,6 +2299,9 @@ zend_module_entry sqlite3_module_entry = { /* }}} */ #ifdef COMPILE_DL_SQLITE3 +#ifdef ZTS +ZEND_TSRMLS_CACHE_DEFINE; +#endif ZEND_GET_MODULE(sqlite3) #endif |